I searched through the web and none came out the solution in resloving the issue.I am having issue in UserController and in other controllers it is working fine. Let see the route
Route::group(['roles' => ['Super Admin', 'Admin']], function () {
Route::resource('user','UserController')->middleware(['auth','roles']);
});
and the UserController
class UserController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
print_r(Auth::user());
exit();
}