hypothetical/app/Providers/EventServiceProvider.php

43 lines
926 B
PHP
Raw Permalink 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.
*
* @return void
*/
2016-08-19 16:38:49 -04:00
public function boot()
{
//
}
2022-05-23 21:01:33 -04:00
/**
* Determine if events and listeners should be automatically discovered.
*
* @return bool
*/
public function shouldDiscoverEvents()
{
return false;
}
}