id('app') ->path('app') ->spa() ->breadcrumbs(false) ->brandName(config('app.name', 'Pelican')) ->brandLogo(config('app.logo')) ->brandLogoHeight('2rem') ->favicon(config('app.favicon', '/pelican.ico')) ->navigation(false) ->maxContentWidth(MaxWidth::ScreenTwoExtraLarge) ->profile(EditProfile::class, false) ->login(Login::class) ->userMenuItems([ MenuItem::make() ->label('Admin') ->url('/admin') ->icon('tabler-arrow-forward') ->sort(5) ->visible(fn (): bool => auth()->user()->canAccessPanel(Filament::getPanel('admin'))), ]) ->discoverResources(in: app_path('Filament/App/Resources'), for: 'App\\Filament\\App\\Resources') ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]); } }