Route [filament.auth.login] not defined. Error
I am getting the following error.
Route [filament.auth.login] not defined.
This prevents me from logging in. I do not know how it happened.
I'm running filament 3.0-stable
10 Replies
Make sure your panel has ->default()
Yes it has ->default()
The
AdminPanelProvider
It used to work. But now it does not anymore.
And i have no idea what changed
I did some debugging in filaments web.php and it gets the the login route registering part but when i try getting it using route() it says it does not existSolution
When i list all routes using
artisan route:list
it does show upI actually found out that the
route()
function is not working at all
Oh i finally fixed the issue
Had a wrong route name in App\Exceptions\Handler.php
Under the unauthenticated
function.
Don't remember if this is a thing added by filament or if i did itHi @faab007nl . I am with the same ISSUE, but on my Handler.php do not have "unauthenticated" function? How fix it?
Make sure that the route in
app/Exceptions/Handler.php
has the following format. filament.<oanel_name>.auth.login
Check that you don't directly use
route()
inside the ServiceProvider/PanelProvider