3 namespace App\Providers;
5 use Illuminate\Auth\Events\Registered;
6 use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
7 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
8 use Illuminate\Support\Facades\Event;
10 class EventServiceProvider extends ServiceProvider
13 * The event listener mappings for the application.
15 * @var array<class-string, array<int, class-string>>
18 Registered::class => [
19 SendEmailVerificationNotification::class,
24 * Register any events for your application.
28 public function boot()
34 * Determine if events and listeners should be automatically discovered.
38 public function shouldDiscoverEvents()