you need the 'web' middleware applied to all routes where you need sessions, which auth uses.
So are you saying that I should rewrite my routes group like this:
Route::group(array('prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['web', 'auth']), function(){
Route::get('users', 'UsersController@index');
});
or maybe I could define a new middleware that consists of those two - web and auth?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community