32 lines
765 B
PHP
32 lines
765 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event listener mappings for the application.
|
|
*
|
|
* @var array<string,array<int,string>>
|
|
*/
|
|
protected $listen = [
|
|
\Illuminate\Auth\Events\Registered::class => [
|
|
\Illuminate\Auth\Listeners\SendEmailVerificationNotification::class,
|
|
],
|
|
\Illuminate\Auth\Events\PasswordReset::class => [
|
|
\App\Listeners\LogoutUserDevices::class,
|
|
],
|
|
];
|
|
|
|
/**
|
|
* The subscriber classes to register.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $subscribe = [
|
|
\App\Listeners\LoginListener::class,
|
|
];
|
|
}
|