EventServiceProvider.php 725 B

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