EventServiceProvider.php 378B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Providers;
  3. use Laravel\Lumen\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. }