ldc-supportweb/app/Providers/EventServiceProvider.php

30 lines
727 B
PHP
Raw Normal View History

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