| 1 | <?php |
||
| 8 | class EventServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The event listener mappings for the application. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $listen = [ |
||
| 16 | 'auth.login' => [ |
||
| 17 | 'App\Handlers\Events\AuthLoginEventHandler', |
||
| 18 | ], |
||
| 19 | 'App\Events\SomeEvent' => [ |
||
| 20 | 'App\Listeners\EventListener', |
||
| 21 | ], |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Register any other events for your application. |
||
| 26 | * |
||
| 27 | * @param \Illuminate\Contracts\Events\Dispatcher $events |
||
| 28 | */ |
||
| 29 | public function boot(DispatcherContract $events) |
||
| 35 | } |
||
| 36 |