shareit/app/Providers/EventServiceProvider.php

46 lines
974 B
PHP
Raw Permalink Normal View History

2018-09-07 23:12:34 +00:00
<?php
namespace App\Providers;
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,
],
ReturnItem::class => [
AlertReturnedItem::class,
],
'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();
//
}
}