EventServiceProvider.php 704 B

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