/** * {@inheritdoc} */ public function register() { parent::register(); $this->app->booted(function () { $this->registerObservers(); }); }
/** * 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(); }