123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Auth\Events\Registered;
  4. use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
  5. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  6. class EventServiceProvider extends ServiceProvider
  7. {
  8. /**
  9. * The event listener mappings for the application.
  10. *
  11. * @var array<class-string, array<int, class-string>>
  12. */
  13. protected $listen = [
  14. Registered::class => [
  15. SendEmailVerificationNotification::class,
  16. ],
  17. 'Illuminate\Auth\Events\Verified' => [
  18. 'App\Listeners\LogVerifiedUser',
  19. ],
  20. ];
  21. /**
  22. * Register any events for your application.
  23. *
  24. * @return void
  25. */
  26. public function boot()
  27. {
  28. //
  29. }
  30. /**
  31. * Determine if events and listeners should be automatically discovered.
  32. *
  33. * @return bool
  34. */
  35. public function shouldDiscoverEvents()
  36. {
  37. return false;
  38. }
  39. }