Lae/app/Providers/EventServiceProvider.php

41 lines
889 B
PHP
Raw Normal View History

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