panel(Panel::make())); } public function boot(): void { FilamentView::registerRenderHook( PanelsRenderHook::SIDEBAR_NAV_START, fn () => Livewire::mount(SelectProject::class) ); FilamentColor::register([ 'slate' => Color::Slate, 'gray' => Color::Gray, 'red' => Color::Red, 'orange' => Color::Orange, 'amber' => Color::Amber, 'yellow' => Color::Yellow, 'lime' => Color::Lime, 'green' => Color::Green, 'emerald' => Color::Emerald, 'teal' => Color::Teal, 'cyan' => Color::Cyan, 'sky' => Color::Sky, 'blue' => Color::Blue, 'indigo' => Color::Indigo, 'violet' => Color::Violet, 'purple' => Color::Purple, 'fuchsia' => Color::Fuchsia, 'pink' => Color::Pink, 'rose' => Color::Rose, ]); } /** * @throws Exception */ public function panel(Panel $panel): Panel { return $panel ->default() ->id('app') ->path('app') ->passwordReset() ->colors([ 'primary' => Color::Indigo, ]) ->viteTheme('resources/css/filament/app/theme.css') ->brandLogo(fn () => view('web.components.brand')) ->brandLogoHeight('30px') ->discoverPages(in: app_path('Web/Pages'), for: 'App\\Web\\Pages') ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]) ->login() ->spa() ->globalSearchKeyBindings(['command+k', 'ctrl+k']) ->globalSearchFieldKeyBindingSuffix(); } }