Changeset View
Changeset View
Standalone View
Standalone View
src/app/Providers/EventServiceProvider.php
<?php | <?php | ||||
namespace App\Providers; | namespace App\Providers; | ||||
use Illuminate\Support\Facades\Event; | use Illuminate\Support\Facades\Event; | ||||
use Illuminate\Auth\Events\Registered; | use Illuminate\Auth\Events\Registered; | ||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification; | use Illuminate\Auth\Listeners\SendEmailVerificationNotification; | ||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | ||||
class EventServiceProvider extends ServiceProvider | class EventServiceProvider extends ServiceProvider | ||||
{ | { | ||||
/** | /** | ||||
* The event listener mappings for the application. | * The event listener mappings for the application. | ||||
* | * | ||||
* @var array | * @var array<class-string, array<int, class-string>> | ||||
*/ | */ | ||||
protected $listen = [ | protected $listen = [ | ||||
Registered::class => [ | Registered::class => [ | ||||
SendEmailVerificationNotification::class, | SendEmailVerificationNotification::class, | ||||
], | ], | ||||
]; | ]; | ||||
/** | /** | ||||
* Register any events for your application. | * Register any events for your application. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function boot() | public function boot() | ||||
{ | { | ||||
parent::boot(); | |||||
// | // | ||||
} | } | ||||
/** | |||||
* Determine if events and listeners should be automatically discovered. | |||||
* | |||||
* @return bool | |||||
*/ | |||||
public function shouldDiscoverEvents() | |||||
{ | |||||
return false; | |||||
} | |||||
} | } |