When you are making app with Laravel and using automatically generated files made by "php artisan make:auth," you might want to know how to change their redirect url.
app>Http>Controllers>Auth>LoginController.php, for eaxample.
There is a code as below.
protected $redirectTo = '/home';
When user has logged in correctly, the page is redirected to '/home.' You need to change '/home' to whatever you want to redirect to.
Top comments (0)