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