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
Do you have a login page or route in your app?
@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
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.
how please
learn laravel please https://laravel.com/docs/10.x/routing#redirect-routes
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.
Thanks
And here aswell:
Inside the web.php ->
Route::get('/laravel/login', fn() => redirect(route('filament.auth.login')))->name('login');