Route [filament.admin.pages.dashboard] not defined.
I have a custom Dashboard page:
And it registers itself, as I can see in the sail artisan route:list command:
So the name it is given is filament.admin.pages.dashboard. But when I do this call in
AdminPanelProvider
:
I get the error Route [filament.admin.pages.dashboard] not defined. ?7 Replies
Solution
Try adding a closure inside “url()”
So “url(fn() => route(…))”
Thanks! Solved it
Explanation: This is a ServiceProvider and Laravle is still booting, so the routes are not registered yet.
Yeah so it should be documented that way.
Is there an error in the docs? Then please PR a fix.
Yeah there are no closures shown in the docs for user and tenant menu items which is why I have seen so many help post related to this. I already submitted a PR 3 days ago but no response