ajout app
This commit is contained in:
35
SNIPE-IT/app/Providers/EventServiceProvider.php
Normal file
35
SNIPE-IT/app/Providers/EventServiceProvider.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Listeners\CheckoutableListener;
|
||||
use App\Listeners\LogListener;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The event listener mappings for the application.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $listen = [
|
||||
'Illuminate\Auth\Events\Login' => [
|
||||
\App\Listeners\LogSuccessfulLogin::class,
|
||||
],
|
||||
|
||||
'Illuminate\Auth\Events\Failed' => [
|
||||
\App\Listeners\LogFailedLogin::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* The subscriber classes to register.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $subscribe = [
|
||||
LogListener::class,
|
||||
CheckoutableListener::class,
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user