spa() ->databaseNotifications() ->brandName(config('app.name', 'Pelican')) ->brandLogo(config('app.logo')) ->brandLogoHeight('2rem') ->favicon(config('app.favicon', '/pelican.ico')) ->topNavigation(fn () => auth()->user()->getCustomization()['top_navigation'] ?? false) ->maxContentWidth(config('panel.filament.display-width', 'screen-2xl')) ->profile(EditProfile::class, false) ->login(Login::class) ->passwordReset() ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, LanguageMiddleware::class, RequireTwoFactorAuthentication::class, ]) ->authMiddleware([ Authenticate::class, ]); } }