EventServiceProvider.php 996 B

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