Route not defined , custom page
Trying to access a custom page through userMenuItems, but i get the error
Here is my AdminPanelProvider.php code:
It worked on V2. I have cleared all cache. if i remove menu item and just have a link to the page in the regular navigation, it works.
Anyone have any suggestions?
Solution:Jump to solution
You are calling this code from a ServiceProvider, so before all of Laravel is ready. You need to use a closure so it's evaluated later.
->url(fn () => route('filament.admin.pages.settings'))
Btw. code formatting works with back ticks. Yours are in the wrong direction....2 Replies
Solution
You are calling this code from a ServiceProvider, so before all of Laravel is ready. You need to use a closure so it's evaluated later.
->url(fn () => route('filament.admin.pages.settings'))
Btw. code formatting works with back ticks. Yours are in the wrong direction.Awesome! thanks, that worked! π