Route [login] not defined
I got Route [login] not defined I try do it like image but not solve.
31 Replies
=>path('admin')
the same error
OH, well now that I see the url, this makes more sense
Your token expired
go to 127.0.0.1:8000/admin/login
I updated the same user is login and I am doing reload page I got this error
Did you go here?
Otherwise try
php artisan optimize
againwhen reload again I went to http://127.0.0.1:8000/admin/login
and still same error?
no
I want to update on user go dirct to that how do it
I dont understand you friend
look this error show when i update the user I login it
To summarize, you get the error because
1) Your panel is still misconfigured
2) Cache (try running
php artisan optimize
)This error appears when I edit the user I am logged into
please use search. such question was asked multiple times already
ok friend
Add this to your web.php routes file.
Like that I got the same error ? This error appears when I edit the user I am logged into,
and you edit what? password?
yes yes
Yes like that. I would put it below the comment. But that will work.
Then i think you need to log in again. IIrc Laravel changes the token of the authenticated user
I want change url her? when update
@aw correct me if Im wrong :)
what?
https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/Pages/Auth/EditProfile.php#L128
check how it is done in the core when password is changed
What is happening is that when you change the password of the logged in user laravel will log them out because their token no matches. So it redirects to the login route. But since Filament can’t hijack that part of Laravel you have to solve the issue by creating a named redirect for login to the panel’s login route.
How do it ?
you already got answer with the code...
The code I gave you for the web.php will fix it.
After I click the Save button, it will navigate to http://127.0.0.1:8000/users. It should move to http://127.0.0.1:8000/login.
check if this route is registered
On the right side of that error page can you click the share link and paste that url here?