I am trying to use Laravel 5 User Authentication. In this regard my URL is http://localhost/lara_project/public/auth/login
before login. I would like to redirect user to http://localhost/lara_project/public/home
after successful login. But it is redirect to http://localhost/lara_project/public/
. I tried with routes like below
Route::get('home',['middleware' => 'auth', 'uses' => 'WelcomeController@index']);
Route::get('/', 'HomeController@index');
Route::controllers(['auth' => 'Auth\AuthController','password' => 'Auth\PasswordController']);
which are resided in routes.php
My Problem is afrer successful login user redirected to http://localhost/lara_project/public/
and if I would like to browse http://localhost/lara_project/public/home
after successfull login it is showing error
This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS
I tried by editing RedirectIfAuthenticated.php,compiled.php and AuthenticatesAndRegistersUsers files. But could not get any satisfactory result.
Could anyone help me in this regard ??