From 10862f806664a3ce00f2219bc4a3a6bad49f5289 Mon Sep 17 00:00:00 2001 From: EL OUFIR Hatim Date: Mon, 16 Jan 2023 15:08:20 +0100 Subject: [PATCH] Hide timesheet / dashboard timesheet from menu --- app/Filament/Pages/TimesheetDashboard.php | 2 ++ app/Filament/Resources/TimesheetResource.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/Filament/Pages/TimesheetDashboard.php b/app/Filament/Pages/TimesheetDashboard.php index 960efe93..ed5231de 100644 --- a/app/Filament/Pages/TimesheetDashboard.php +++ b/app/Filament/Pages/TimesheetDashboard.php @@ -13,6 +13,8 @@ class TimesheetDashboard extends Page protected static string $view = 'filament::pages.dashboard'; + protected static bool $shouldRegisterNavigation = false; + protected function getColumns(): int | array { return 6; diff --git a/app/Filament/Resources/TimesheetResource.php b/app/Filament/Resources/TimesheetResource.php index 6367f12c..d814ecc6 100644 --- a/app/Filament/Resources/TimesheetResource.php +++ b/app/Filament/Resources/TimesheetResource.php @@ -23,6 +23,8 @@ class TimesheetResource extends Resource protected static ?int $navigationSort = 4; + protected static bool $shouldRegisterNavigation = false; + protected static function getNavigationLabel(): string { return __('Timesheet');