default() ->id('verwaltung') ->path('verwaltung') ->login(StaffLogin::class) ->brandName('Verwaltung') ->authGuard('staff') ->colors([ 'primary' => Color::hex('#3b7b09'), ]) ->multiFactorAuthentication([ AppAuthentication::make() ->recoverable() ->brandName(StaffAuthenticatorName::current()), ], isRequired: true) ->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources') ->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages') ->pages([ Dashboard::class, ]) ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets') ->widgets([ AccountWidget::class, ]) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, SanitizeIntendedUrl::class, AuthenticateSession::class, ShareErrorsFromSession::class, PreventRequestForgery::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]) ->renderHook( PanelsRenderHook::STYLES_AFTER, fn (): string => view('filament.cms.styles')->render(), ) ->renderHook( PanelsRenderHook::BODY_END, fn (): string => app()->environment('testing') ? '' : Blade::render("@vite('resources/js/app.js')"), ); } }