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.

44 lines
1.0 KiB

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