EventServiceProvider.php 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Providers;
  3. use App\Events\NewOrder;
  4. use App\Listeners\NewOrderListener;
  5. use Illuminate\Auth\Events\Registered;
  6. use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
  7. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  8. use Illuminate\Support\Facades\Event;
  9. class EventServiceProvider extends ServiceProvider
  10. {
  11. /**
  12. * The event listener mappings for the application.
  13. *
  14. * @var array
  15. */
  16. protected $listen = [
  17. Registered::class => [
  18. SendEmailVerificationNotification::class,
  19. ],
  20. NewOrder::class => [
  21. NewOrderListener::class,
  22. ],
  23. ];
  24. /**
  25. * Register any events for your application.
  26. *
  27. * @return void
  28. */
  29. public function boot()
  30. {
  31. //
  32. }
  33. }