2018-09-07 23:12:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-10-03 02:53:35 +00:00
|
|
|
use App\Events\ReturnItem;
|
|
|
|
use App\Listeners\AlertReturnedItem;
|
2021-05-20 23:37:35 +00:00
|
|
|
use App\Listeners\SetLanguage;
|
2018-09-07 23:12:34 +00:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2021-05-20 23:37:35 +00:00
|
|
|
use Illuminate\Support\Facades\Event;
|
2018-09-07 23:12:34 +00:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
Registered::class => [
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
],
|
2018-10-01 00:32:33 +00:00
|
|
|
|
|
|
|
ReturnItem::class => [
|
|
|
|
AlertReturnedItem::class,
|
|
|
|
],
|
2018-10-03 02:53:35 +00:00
|
|
|
|
|
|
|
'Illuminate\Auth\Events\Login' => [
|
|
|
|
SetLanguage::class,
|
|
|
|
],
|
2018-09-07 23:12:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
parent::boot();
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|