public function __construct()
 {
     $this->group_repo = App::make('group_repository');
     $this->user_repo = App::make('user_repository');
     Event::listen(['repository.deleting', 'repository.updating'], '\\LaravelAcl\\Authentication\\Repository\\EloquentPermissionRepository@checkIsNotAssociatedToAnyUser');
     Event::listen(['repository.deleting', 'repository.updating'], '\\LaravelAcl\\Authentication\\Repository\\EloquentPermissionRepository@checkIsNotAssociatedToAnyGroup');
     return parent::__construct(new Permission());
 }
コード例 #2
0
 public function __construct()
 {
     $this->sentry = App::make('sentry');
     return parent::__construct(new User());
 }
 /**
  * We use the user profile as a model
  */
 public function __construct()
 {
     return parent::__construct(new UserProfile());
 }