I installed a fresh installation today, but the Session is not working, the files in 'sessions' folder are not being created. I have checked the permission its 777 still its not working.
This is what I am doing in controller.
return redirect()->back()->with('form-data',Input::all())->with('error', "Invalid username or password");
When I access these in view they aren't set.
print_r(Session::get('form-data'));
Same code used to work in 4.2.
I have searched a lot and after that posting here only. Thanks
I think I have fixed it, there is web middleware in routes now, I wasn't using that earlier. So now it becomes:
Route::group(['middleware' => ['web']], function () {
Route::get('user', 'UserController@index');
Route::post('user/login/validate', 'UserController@loginValidate');
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community