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.

54 lines
1.3 KiB

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