Panel Issues
I am running into some issues working with a panel. The help functions route() and auth() are giving me errors. The route() helper states the named route doesn't exist when it does. And the auth() helper is stating a user provider isn't defined. Are these helper methods not useable within the Filament environment?
Solution:Jump to solution
This is in a ServiceProvider. Routes aren't booted yet. Use a Closure for lazy evaluation
url(fn () => route('home'))
2 Replies
Solution
This is in a ServiceProvider. Routes aren't booted yet. Use a Closure for lazy evaluation
url(fn () => route('home'))
Thank you @Dennis Koch. That solved both problems.