EventServiceProvider.php 695 B

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