Want to access all of our courses? (31 h 16 min)
You also get:
Already a member? Login here
where should i add protected $listen = [
BookingCreatedEvent::class => [ BookingCreatedListener::class, ], BookingUpdatedEvent::class => [ BookingUpdatedListener::class, ], BookingDeletedEvent::class => [ BookingDeletedListener::class, ], ]; Im using laravel 11
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
where should i add protected $listen = [
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