Laravel – After login, how to change default redirect to home page

After successful authentication of a user, they are authenticated to /home. /home is the default path which is set by Laravel 5.2/5.3, you can change this by updating redirectTo property in below files:


protected $redirectTo = '/home';


protected $redirectTo = '/home';


if (Auth::guard($guard)->check()) {
return redirect('/home');

Author: ganeshhs

11 years of overall experience in the Internet industry with specialization in internet application development and deployment Proven experience in building, leading and managing high performance, cross functional software engineering teams Hands on experience in CodeIgniter, Zend Framework, PHP, JS, Jquery, MySQL, CSS, HTML, ElasticSearch, Redis, Redis, AWS, Unix.

Leave a Reply

Your email address will not be published. Required fields are marked *