hypothetical/app/Providers/EventServiceProvider.php

39 lines
884 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
2019-10-31 17:24:53 -04:00
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
2022-05-23 21:01:33 -04:00
* The event to listener mappings for the application.
*
2022-05-23 21:01:33 -04:00
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
/**
2016-08-19 16:38:49 -04:00
* Register any events for your application.
*/
2023-03-13 17:33:19 -04:00
public function boot(): void
{
//
}
2022-05-23 21:01:33 -04:00
/**
* Determine if events and listeners should be automatically discovered.
*/
2023-03-13 17:33:19 -04:00
public function shouldDiscoverEvents(): bool
2022-05-23 21:01:33 -04:00
{
return false;
}
}