I have a login form and after submitting the form (if validation is correct), the browser should redirect to the last page before entering . I am currently being redirected back and I always get to the same login page. My route.php looks something like this:
Route::get('/', ' HomeController@index '); Route::get('/list',' EventController@index '); Route::get('/login',' AuthController@login '); Route::post('/login',' AuthController@do _login');
And my redirection inside do_login () is
if(Login_is_valid()) { return Redirect::back(); }
If I am inside the / list and then open the Login and fill out the form correctly, I am redirected to / login again, isn't that strange? Many thanks
source share