> */ protected $listen = [ Registered::class => [ SendEmailVerificationNotification::class, ], ]; /** * Register any events for your application. * * @return void */ public function boot() { // Setting::observe(SettingObserver::class); Invoice::observe(InvoiceObserver::class); Product::observe(ProductObserver::class); parent::boot(); } /** * Determine if events and listeners should be automatically discovered. * * @return bool */ public function shouldDiscoverEvents() { return false; } }