Files

33 lines
771 B
PHP
Raw Permalink Normal View History

2018-05-09 08:05:17 -05:00
<?php
namespace App\Providers;
2019-02-15 09:00:07 -06:00
use App\Listeners\MarkNotificationsRead;
2018-05-09 08:05:17 -05:00
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::class => ['App\Listeners\AuthEventListener@login'],
\Illuminate\Auth\Events\Logout::class => ['App\Listeners\AuthEventListener@logout'],
2020-09-21 14:54:51 +02:00
\App\Events\UserCreated::class => [MarkNotificationsRead::class],
2018-05-09 08:05:17 -05:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}