Hi,
in my application i installed the laravel authentication controllers and routes via artisan make:auth.
In the LoginController i changed the redirectTo property from '/home' to '/', which is my dashboard. That works great and after the user logged in successfully, it's being redirected to the dashboard.
But if a user is already logged in and tries to revisit the '/login' route, laravel redirects to '/home', which does not exist.
How can i change the redirect path for '/login' on already logged in users?
Thanks Chris
Sorry guys, i just found the file to change that behavior: The 'RedirectIfAuthenticated' Middleware. :D
File: /app/Http/Middleware/RedirectIfAuthenticated.php Line: 21
return redirect('/home');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community