/**
  * {@inheritdoc}
  */
 public function register()
 {
     parent::register();
     $this->app->booted(function () {
         $this->registerObservers();
     });
 }
Exemplo n.º 2
0
 /**
  * Register the application's event listeners.
  *
  * @param  \Illuminate\Contracts\Events\Dispatcher  $events
  */
 public function boot(Dispatcher $events)
 {
     parent::boot($events);
     $this->observeUserModel();
     $this->observeRoleModel();
     $this->observePermissionsGroupModel();
     $this->observePermissionModel();
 }