Want to access all of our courses? (30 h 09 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
Tell us what you like or what we can improve
Feel free to share anything you like or dislike about this page or the platform in general.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
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