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?
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
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.
Btw. code formatting works with back ticks. Yours are in the wrong direction.
->url(fn () => route('filament.admin.pages.settings'))Btw. code formatting works with back ticks. Yours are in the wrong direction.