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.

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