/** * Boot the application events. * * @return void */ public function boot() { $this->registerConfig(); $this->registerTranslations(); $this->registerViews(); User::observe(new UserObserver()); Role::observe(new RoleObserver()); $this->setMenu(); $this->registerWidget(); }