// Here's the file where all events and listeners get registered.
// One of the listeners is default from Laravel, from Illuminate/Auth.
use App\Events\UserApproved;
use App\Events\UserVerified;
use Illuminate\Auth\Events\Registered;
use App\Listeners\SendNewUserNotification;
use App\Listeners\SendUserApprovedNotification;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
class EventServiceProvider extends ServiceProvider
{
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
UserVerified::class => [
SendNewUserNotification::class,
],
UserApproved::class => [
SendUserApprovedNotification::class,
],
];
}