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.

49 lines
1.2 KiB

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