Route [login] not defined.

How can I solve it so that if the password change was successful, it redirects to /admin? Route [login] not defined. https://flareapp.io/share/x7XGq8xP Route::redirect('/login', '/admin/login', 301)->name('login'); https://cdn.discordapp.com/attachments/949073049855086683/1131389983782084648/Kepernyofoto_2023-07-20_-_2.58.42.png
7 Replies
Luis Alonso
Luis Alonso2y ago
Do you have a login page or route in your app?
Százados
SzázadosOP2y ago
@luisalonsodev no, I thought that was the problem, but I don't know what to write there because I'm still a beginner. More precisely, if I entered what I wrote above, I got that pop-up window
awcodes
awcodes2y ago
Just add a redirect in your web.php file to redirect from laravel’s default login route to Filament’s login route. This is unfortunately something we can’t compensate. Search the discord. It has been discussed several times on here.
williamdk.
williamdk.2y ago
how please
krekas
krekas2y ago
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
williamdk.
williamdk.2y ago
Thanks
Husky110
Husky1102y ago
And here aswell: Inside the web.php -> Route::get('/laravel/login', fn() => redirect(route('filament.auth.login')))->name('login');

Did you find this page helpful?