Açıklama Yok

EventServiceProvider.php 731B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
  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\SomeEvent' => [
  14. 'App\Listeners\EventListener',
  15. ],
  16. ];
  17. /**
  18. * Register any other events for your application.
  19. *
  20. * @param \Illuminate\Contracts\Events\Dispatcher $events
  21. * @return void
  22. */
  23. public function boot(DispatcherContract $events)
  24. {
  25. parent::boot($events);
  26. //
  27. }
  28. }