dash controller clean up

there was some stuff in there that wasn't being used anymore, so it's
been removed
This commit is contained in:
ro 2024-03-03 19:50:14 -06:00
parent eda7fd4d3e
commit 57d47909b9
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50

View file

@ -2,33 +2,24 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Services\SettingsService;
use App\Services\AuthService;
use App\Services\PaginateService; use App\Services\PaginateService;
class DashController extends Controller class DashController extends Controller
{ {
protected $settings;
protected $pages; protected $pages;
public function __construct( public function __construct(
SettingsService $settingsService,
AuthService $authService,
PaginateService $paginateService, PaginateService $paginateService,
) { ) {
$this->settings = $settingsService; $this->pages = $paginateService;
$this->auth = $authService;
$this->pages = $paginateService;
} }
public function start(Request $request) public function start()
{ {
$status = session('handle') !== null ? true : false; $status = session('handle') !== null ? true : false;
$result = []; $result = [];
if ($status) { if ($status) {
$result = $this->pages->getPage(1, 4); $result = $this->pages->getPage(1, 4);
//var_dump($result['pages'][1]['media'][0]['type']);
} }
return view('back.start', [ return view('back.start', [
"status" => $status, "status" => $status,