php - Wrong Redirection in Laravel 5 built in User Authentication -


i trying use laravel 5 user authentication. in regard url http://localhost/lara_project/public/auth/login before login. redirect user http://localhost/lara_project/public/home after successful login. redirect http://localhost/lara_project/public/. tried routes below

route::get('home',['middleware' => 'auth', 'uses' => 'welcomecontroller@index']);  route::get('/', 'homecontroller@index');  route::controllers(['auth' => 'auth\authcontroller','password' => 'auth\passwordcontroller']); 

which resided in routes.php

my problem afrer successful login user redirected http://localhost/lara_project/public/ , if browse http://localhost/lara_project/public/home after successfull login showing error

this webpage has redirect loop err_too_many_redirects 

i tried editing redirectifauthenticated.php,compiled.php , authenticatesandregistersusers files. not satisfactory result.

could me in regard ??

go auth\authcontroller , add variable $redirectto = 'home';

this tell laravel redirect after login.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -