| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | namespace App\Providers; | 3 | namespace App\Providers; | |
| 4 | 4 | |||
| 5 | use Illuminate\Support\Facades\Event; | 5 | use Illuminate\Support\Facades\Event; | |
| -+ | 6 | use Illuminate\Auth\Events\Registered; | ||
| 7 | use Illuminate\Auth\Listeners\SendEmailVerificationNotification; | |||
| 6 | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | = | 8 | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
| 7 | 9 | |||
| 8 | class EventServiceProvider extends ServiceProvider | 10 | class EventServiceProvider extends ServiceProvider | |
| 9 | { | 11 | { | |
| 10 | /** | 12 | /** | |
| 11 | * The event listener mappings for the application. | 13 | * The event listener mappings for the application. | |
| 12 | * | 14 | * | |
| 13 | * @var array | 15 | * @var array | |
| 14 | */ | 16 | */ | |
| 15 | protected $listen = [ | 17 | protected $listen = [ | |
| 16 | 'App\Events\Event' => [ | <> | 18 | Registered::class => [ |
| 17 | 'App\Listeners\EventListener', | 19 | SendEmailVerificationNotification::class, | |
| 18 | ], | = | 20 | ], |
| 19 | ]; | 21 | ]; | |
| 20 | 22 | |||
| 21 | /** | 23 | /** | |
| 22 | * Register any events for your application. | 24 | * Register any events for your application. | |
| 23 | * | 25 | * | |
| 24 | * @return void | 26 | * @return void | |
| 25 | */ | 27 | */ | |
| 26 | public function boot() | 28 | public function boot() | |
| 27 | { | 29 | { | |
| 28 | parent::boot(); | 30 | parent::boot(); | |
| 29 | 31 | |||
| 30 | // | 32 | // | |
| 31 | } | 33 | } | |
| 32 | } | 34 | } |