HomeController@index Problem

Solved
keshan-sandeepa

Mar 11th, 2018 05:03 PM

Hello How to change deafualt make auth : deafualt HomeController@index , I tired alot but not working at all

devdojo

Mar 11th, 2018 10:13 PM

Hey @keshan,

Which product is this for? Additionally, can you explain what your are trying to accomplish in a bit more detail and I can try and help you further. Thanks :) Talk to you soon.

keshan-sandeepa

Mar 11th, 2018 10:20 PM

Okay I used Chatter Php , and i run this command inorder to create authentication "php artisan make:auth" , and the problem is when user login its redirect to /home page, i need to change that , (i need to change to forms)but i tried its doesn't work , the Rout.php looks like this
https://imgur.com/a/O8hNm

mark

Mar 12th, 2018 01:02 PM

Best Answer

You can update the redirection url in the LoginController.php. You will there see this:

/**
 * Where to redirect users after login.
 *
 * @var string
 */
protected $redirectTo = '/home';