default() ->id('central') ->path('central') ->login() ->colors([ 'primary' => Color::Amber, ]) ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') ->pages([ Pages\Dashboard::class, ]) ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') ->widgets([ // Widgets\AccountWidget::class, // Widgets\FilamentInfoWidget::class, ]) ->navigationGroups([ 'Data Master', 'Instance', 'Karisma', 'Settings', ]) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]) ->plugin( BreezyCore::make() ->myProfile( shouldRegisterUserMenu: true, // Sets the 'account' link in the panel User Menu (default = true) shouldRegisterNavigation: true, // Adds a main navigation item for the My Profile page (default = false) navigationGroup: 'Settings', // Sets the navigation group for the My Profile page (default = null) hasAvatars: true, // Enables the avatar upload form component (default = false) slug: 'my-profile' // Sets the slug for the profile page (default = 'my-profile') ) ->enableTwoFactorAuthentication( force: false, // force the user to enable 2FA before they can use the application (default = false) // action: CustomTwoFactorPage::class // optionally, use a custom 2FA page ) ->enableSanctumTokens( permissions: ['my','custom','permissions'] // optional, customize the permissions (default = ["create", "view", "update", "delete"]) ), ) ->plugin( FilamentEnvEditorPlugin::make() ->navigationGroup('System Tools') ->navigationLabel('My Env') ->navigationIcon('heroicon-o-cog-8-tooth') ->navigationSort(1) ->slug('env-editor') ->authorize( fn () => auth()->user()->user_role_id==1 ) ); } }