2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-09-10 07:40:26 -07:00
|
|
|
use App\Listeners\CheckoutableListener;
|
2019-03-13 10:58:35 -07:00
|
|
|
use App\Listeners\LogListener;
|
2016-03-25 01:18:05 -07:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
2019-03-13 10:58:35 -07:00
|
|
|
'Illuminate\Auth\Events\Login' => [
|
2021-06-10 13:16:56 -07:00
|
|
|
\App\Listeners\LogSuccessfulLogin::class,
|
2019-03-13 10:58:35 -07:00
|
|
|
],
|
2018-07-16 23:49:08 -07:00
|
|
|
|
2019-03-13 10:58:35 -07:00
|
|
|
'Illuminate\Auth\Events\Failed' => [
|
2021-06-10 13:16:56 -07:00
|
|
|
\App\Listeners\LogFailedLogin::class,
|
2019-03-13 10:58:35 -07:00
|
|
|
],
|
|
|
|
];
|
2018-07-16 23:49:08 -07:00
|
|
|
|
2018-07-21 04:54:30 -07:00
|
|
|
/**
|
|
|
|
* The subscriber classes to register.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $subscribe = [
|
2018-09-10 07:40:26 -07:00
|
|
|
LogListener::class,
|
2021-06-10 13:15:52 -07:00
|
|
|
CheckoutableListener::class,
|
2018-07-21 04:54:30 -07:00
|
|
|
];
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|