diff --git a/packages/realtime-compiler/src/Http/DashboardController.php b/packages/realtime-compiler/src/Http/DashboardController.php index 84fa92ab6b7..cdc889843c4 100644 --- a/packages/realtime-compiler/src/Http/DashboardController.php +++ b/packages/realtime-compiler/src/Http/DashboardController.php @@ -34,8 +34,6 @@ */ class DashboardController extends BaseController { - public string $title; - protected bool $withConsoleOutput = true; protected bool $withSession = true; @@ -56,8 +54,6 @@ public function __construct(?Request $request = null) { parent::__construct($request); - $this->title = config('hyde.name').' - Dashboard'; - $this->loadFlashData(); if ($this->request->method === 'POST') { @@ -92,9 +88,9 @@ public function handle(): Response protected function show(): string { - return AnonymousViewCompiler::handle(__DIR__.'/../../resources/dashboard.blade.php', array_merge( - (array) $this, ['dashboard' => $this, 'request' => $this->request, 'csrfToken' => $this->generateCSRFToken()], - )); + return AnonymousViewCompiler::handle(__DIR__.'/../../resources/dashboard.blade.php', + ['title' => config('hyde.name').' - Dashboard', 'dashboard' => $this, 'request' => $this->request, 'csrfToken' => $this->generateCSRFToken()], + ); } protected function handlePostRequest(): JsonResponse