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:
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’
Jump to solution
3 Replies
Solution
awcodes
awcodes2mo ago
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’
awcodes
awcodes2mo ago
Or just remove ->login() from the panel configuration.
Josh Manders
Josh Manders2mo ago
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!