ldc-supportweb/app/Providers/EventServiceProvider.php
2021-07-21 09:44:29 +02:00

48 lines
1.2 KiB
PHP

<?php
namespace App\Providers;
use App\Events\NotifySubscriptions;
use App\Events\NotifyTicketCreator;
use App\Events\TicketStatusChanged;
use App\Listeners\AddStatusMessages;
use App\Listeners\SendNotificationMail;
use App\Listeners\SendNotificationMailToTicketCreator;
use App\Listeners\SendSubscriptionsNotificationsMail;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
TicketStatusChanged::class => [
AddStatusMessages::class
],
NotifySubscriptions::class => [
SendSubscriptionsNotificationsMail::class
],
NotifyTicketCreator::class => [
SendNotificationMailToTicketCreator::class
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
}