File: D:/HostingSpaces/SBogers10/veltech.komma.pro/app/Komma/Kms/Dashboard/DashboardController.php
<?php
namespace App\Komma\Kms\Dashboard;
use App\Komma\Kms\Core\SectionController;
use App\Komma\Pages\Models\Page;
final class DashboardController extends SectionController
{
protected $slug = "dashboard";
protected $forModelName = Page::class; //We need to set a model altough we don't even use it. This is because of the core of the KMS demands it
public function __construct(DashboardSection $section)
{
parent::__construct($section);
}
public function index() {
// Build section tabs
$this->section->getSectionTabDirector()->buildTabs();
return $this->section->render();
}
}