ldc-lionor/app/Providers/EventServiceProvider.php

41 lines
892 B
PHP
Raw Normal View History

2023-02-24 15:20:58 +00:00
<?php
namespace App\Providers;
2023-08-28 08:46:47 +00:00
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
2023-02-24 15:20:58 +00:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
2023-08-28 08:46:47 +00:00
* The event to listener mappings for the application.
2023-02-24 15:20:58 +00:00
*
* @var array<class-string, array<int, class-string>>
*/
2023-08-28 08:46:47 +00:00
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
2023-02-24 15:20:58 +00:00
/**
* Register any events for your application.
*
* @return void
*/
2023-08-28 08:46:47 +00:00
public function boot(): void
2023-02-24 15:20:58 +00:00
{
}
2023-08-28 08:46:47 +00:00
/**
* Determine if events and listeners should be automatically discovered.
*
* @return boolean
*/
public function shouldDiscoverEvents(): bool
{
return false;
}
2023-02-24 15:20:58 +00:00
}