EventServiceProvider.php 774 B

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