public function __construct(UserRepository $repo)
 {
     parent::__construct();
     $this->loginPath = config('authcluster.login_name_space') . '.login';
     $this->middleware('only.guests', ['except' => 'getLogout']);
     $this->repo = $repo;
 }
 public function __construct()
 {
     parent::__construct();
     $this->middleware('only.permission:viewUsers', ['only' => ['index']]);
     $this->middleware('only.permission:updateUsersAccess', ['only' => ['edit', 'update']]);
     $this->middleware('only.permission:deleteUsers', ['only' => 'destroy']);
 }
 public function __construct(UserRepository $repo)
 {
     parent::__construct();
     $this->repo = $repo;
     $this->middleware('only.logged');
     //Verify binded model of user is of the current user
     $this->middleware('access.profile', ['except' => 'show']);
 }
 public function __construct()
 {
     parent::__construct();
     $this->middleware('only.guests');
 }