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.

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