clrghouz/app/Providers/EventServiceProvider.php

41 lines
841 B
PHP
Raw Normal View History

2018-11-15 10:45:49 +00:00
<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
2024-06-09 23:18:59 +00:00
use Illuminate\Support\Facades\Event;
use App\Events\Matrix\Message;
use App\Listeners\Matrix\MessageListener;
2018-11-15 10:45:49 +00:00
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
2024-06-09 23:18:59 +00:00
Event::listen(
Message::class,
MessageListener::class,
);
2018-11-15 10:45:49 +00:00
}
}