id('system') ->path('system') ->authGuard('platform') ->login(Login::class) ->colors([ 'primary' => Color::Blue, ]) ->databaseNotifications() ->renderHook( PanelsRenderHook::BODY_START, fn () => view('filament.system.components.break-glass-banner')->render(), ) ->discoverPages(in: app_path('Filament/System/Pages'), for: 'App\\Filament\\System\\Pages') ->pages([ Dashboard::class, ]) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, UseSystemSessionCookie::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, 'ensure-correct-guard:platform', DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, 'ensure-platform-capability:'.PlatformCapabilities::ACCESS_SYSTEM_PANEL, ]) ->viteTheme('resources/css/filament/system/theme.css'); } }