EventServiceProvider.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Providers;
  3. use App\Events\UserUpdateCreditsEvent;
  4. use App\Listeners\UnsuspendServers;
  5. use App\Listeners\Verified;
  6. use Illuminate\Auth\Events\Registered;
  7. use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
  8. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  9. use Illuminate\Support\Facades\Event;
  10. use SocialiteProviders\Manager\SocialiteWasCalled;
  11. class EventServiceProvider extends ServiceProvider
  12. {
  13. /**
  14. * The event listener mappings for the application.
  15. *
  16. * @var array
  17. */
  18. protected $listen = [
  19. Registered::class => [
  20. SendEmailVerificationNotification::class,
  21. ],
  22. UserUpdateCreditsEvent::class => [
  23. UnsuspendServers::class
  24. ],
  25. SocialiteWasCalled::class => [
  26. // ... other providers
  27. 'SocialiteProviders\\Discord\\DiscordExtendSocialite@handle',
  28. ],
  29. 'Illuminate\Auth\Events\Verified' => [
  30. Verified::class,
  31. ],
  32. ];
  33. /**
  34. * Register any events for your application.
  35. *
  36. * @return void
  37. */
  38. public function boot()
  39. {
  40. //
  41. }
  42. }