EventServiceProvider.php 730 B

12345678910111213141516171819202122232425262728293031
  1. <?php namespace App\Providers;
  2. use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
  3. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  4. class EventServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * The event listener mappings for the application.
  8. *
  9. * @var array
  10. */
  11. protected $listen = [
  12. 'App\Events\SomeEvent' => [
  13. 'App\Listeners\EventListener',
  14. ],
  15. ];
  16. /**
  17. * Register any other events for your application.
  18. *
  19. * @param \Illuminate\Contracts\Events\Dispatcher $events
  20. * @return void
  21. */
  22. public function boot(DispatcherContract $events)
  23. {
  24. parent::boot($events);
  25. //
  26. }
  27. }