> */ protected $listen = [ // Orders... OrderCreated::class => [ SendOrderCreatedNotification::class, ], // Categories... CategoryTaxChanged::class => [ UpdateCategoryProductsPriceByTax::class, ], // Channel is active state changed... ChannelActiveStateChanged::class => [ HideChannelProducts::class, ], ]; /** * Register any events for your application. */ public function boot(): void { ProductProperty::observe(ProductPropertyObserver::class); ProductAttributeValue::observe(ProductAttributeValueObserver::class); } /** * Determine if events and listeners should be automatically discovered. */ public function shouldDiscoverEvents(): bool { return false; } }