2018-04-15 23:56:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2018-08-28 03:07:36 +00:00
|
|
|
use Illuminate\Support\Facades\Event;
|
2018-04-15 23:56:48 +00:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
2018-09-16 00:36:04 +00:00
|
|
|
'Illuminate\Auth\Events\Login' => [
|
|
|
|
'App\Listeners\AuthLogin',
|
2018-04-15 23:56:48 +00:00
|
|
|
],
|
2018-09-16 00:36:04 +00:00
|
|
|
'Illuminate\Auth\Events\Failed' => [
|
|
|
|
'App\Listeners\LogFailedLogin',
|
2018-07-23 17:29:20 +00:00
|
|
|
],
|
2018-04-15 23:56:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
parent::boot();
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|