Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

oussamanh's avatar

filament redirect me to undefined "login" route after i changed the password from the user form feild

When I change the logged-in user's password from the form field, it gives me an error message saying:​ 'Route [login] not defined.' ​ However, after refreshing the page, it directs me to the Filament login page. I tried to solve this issue by adding this route to the web.php file: ​Route::get('/login', function () { return redirect('/admin'); })->name('login');​. This solution works, but I am searching for the best way to solve this problem. ​```

1 like
0 replies

Please or to participate in this conversation.