ldc-projects-administration/app/Providers/EventServiceProvider.php

41 lines
892 B
PHP
Raw Normal View History

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