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 Alonso17mo ago
Do you have a login page or route in your app?
Százados
SzázadosOP17mo 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
awcodes17mo 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.16mo ago
how please
krekas
krekas16mo 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.16mo ago
Thanks
Husky110
Husky11016mo ago
And here aswell: Inside the web.php -> Route::get('/laravel/login', fn() => redirect(route('filament.auth.login')))->name('login');
Want results from more Discord servers?
Add your server