default() ->id('admin') ->path('admin') ->homeUrl('/') ->spa() ->databaseNotifications() ->breadcrumbs(false) ->brandName(config('app.name', 'Pelican')) ->brandLogo(config('app.logo')) ->brandLogoHeight('2rem') ->favicon(config('app.favicon', '/pelican.ico')) ->topNavigation(config('panel.filament.top-navigation', true)) ->maxContentWidth(config('panel.filament.display-width', 'screen-2xl')) ->profile(EditProfile::class, false) ->login(Login::class) ->userMenuItems([ MenuItem::make() ->label('Exit Admin') ->url('/') ->icon('tabler-arrow-back') ->sort(24), ]) ->navigationGroups([ NavigationGroup::make('Server') ->collapsible(false), NavigationGroup::make('User') ->collapsible(false), NavigationGroup::make('Advanced'), ]) ->sidebarCollapsibleOnDesktop() ->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources') ->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages') ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, LanguageMiddleware::class, ]) ->authMiddleware([ Authenticate::class, ]); } }