Skip to main content

Automated Tests for Notification System

Premium
10 min read
Solomon Iroegbu avatar

where should i add protected $listen = [

BookingCreatedEvent::class => [
BookingCreatedListener::class,
],
BookingUpdatedEvent::class => [
BookingUpdatedListener::class,
],
BookingDeletedEvent::class => [
BookingDeletedListener::class,
],
];
Im using laravel 11
Modestas avatar

This has been changed in Laravel 11. Now you have to register them like this: https://laravel.com/docs/11.x/events#manually-registering-events