pxlrbt\FilamentSpotlight\Actions\RegisterUserMenu::getUrl(): Return value must be of type string, null returned #46
Unanswered
mohandtharsha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting this error after installing this
id('employer') ->path('employer') ->login() ->plugins([ SpotlightPlugin::make(), ]) // ->profile() ->colors([ 'primary' => Color::Amber, ]) ->discoverResources(in: app_path('Filament/Employer/Resources'), for: 'App\\Filament\\Employer\\Resources') ->discoverPages(in: app_path('Filament/Employer/Pages'), for: 'App\\Filament\\Employer\\Pages') ->pages([ Pages\Dashboard::class, ]) ->discoverWidgets(in: app_path('Filament/Employer/Widgets'), for: 'App\\Filament\\Employer\\Widgets') ->widgets([ Widgets\AccountWidget::class, Widgets\FilamentInfoWidget::class, ]) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, DisableBladeIconComponents::class, DispatchServingFilamentEvent::class, ]) ->authMiddleware([ Authenticate::class, ]) ->sidebarCollapsibleOnDesktop() ->userMenuItems([ MenuItem::make() ->label('Profile') ->url(fn (): string => EmployersProfile::getUrl()) ->icon('heroicon-o-user-circle'), // MenuItem::make() // ->label('Users') // ->url(fn (): string => EmployerUsersResource::getUrl()) // ->icon('heroicon-o-users'), MenuItem::make() ->label('Messages') // ->url(fn (): string => EmployerUsersResource::getUrl()) ->icon('heroicon-o-folder'), MenuItem::make() ->label('Settings') // ->url(fn (): string => EmployerUsersResource::getUrl()) ->icon('heroicon-o-cog-8-tooth'), // ... ]) ; } } but its throwing below error,pxlrbt\FilamentSpotlight\Actions\RegisterUserMenu::getUrl(): Return value must be of type string, null returnedbelow is my code,
Beta Was this translation helpful? Give feedback.
All reactions