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.

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