EventServiceProvider.php 678 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Foundation\Support\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\Event' => [
  13. 'App\Listeners\EventListener',
  14. ],
  15. 'Illuminate\Mail\Events\MessageSending' => [
  16. 'App\Listeners\LogSendingMessage',
  17. ],
  18. 'Illuminate\Mail\Events\MessageSent' => [
  19. 'App\Listeners\LogSentMessage',
  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. }