F
Filament16mo ago
Darpan

User menu items, route not found

I added user menu item as per the docs (https://filamentphp.com/docs/3.x/panels/navigation#customizing-the-user-menu), but getting route not found error. When I run php artisan route:list, I can see that the route is registered.
->userMenuItems([
MenuItem::make()
->label('Profile')
->url(route(EditProfile::getRouteName('admin'))),
//->url(route('filament.admin.pages.edit-profile')),
])
->userMenuItems([
MenuItem::make()
->label('Profile')
->url(route(EditProfile::getRouteName('admin'))),
//->url(route('filament.admin.pages.edit-profile')),
])
Solution:
Try this ->url(fn () => route('filament.admin.pages.edit-profile'))
Jump to solution
2 Replies
Solution
sumardi
sumardi16mo ago
Try this ->url(fn () => route('filament.admin.pages.edit-profile'))
Darpan
DarpanOP16mo ago
This worked, thanks!
Want results from more Discord servers?
Add your server