EventServiceProvider.php 447 B

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