Skip to main content

Automated Tests for Notification System

Premium
10 min read

Comments & Discussion

SI
Solomon Iroegbu ✓ Link copied!

where should i add protected $listen = [

BookingCreatedEvent::class => [
BookingCreatedListener::class,
],
BookingUpdatedEvent::class => [
BookingUpdatedListener::class,
],
BookingDeletedEvent::class => [
BookingDeletedListener::class,
],
];
Im using laravel 11
M
Modestas ✓ Link copied!

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

We'd Love Your Feedback

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.