You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

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