EventServiceProvider.php 868 B

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