Panel::loginRouteSlug not working
I am using
->loginRouteSlug('sign-in')
to direct Filament to use my already existing login page for authenticating instead of having its own, but it keeps giving me Route [login] not defined.
error when I go to my panel.
Am I doing this wrong?Solution:Jump to solution
The route slug is just the name of the path in the url. It’s still trying to find a route named ‘login’. You could probably just do a redirect in web.php from ‘admin/login’ to ‘/sign-in’
3 Replies
Solution
The route slug is just the name of the path in the url. It’s still trying to find a route named ‘login’. You could probably just do a redirect in web.php from ‘admin/login’ to ‘/sign-in’
Or just remove ->login() from the panel configuration.
Yeah that's what I did to get the error, removing ->login() from it. I'll set
admin/login
to redirect. And report back.
That worked, thanks @awcodes!