nanosanteservice/app/Providers/EventServiceProvider.php

30 lines
720 B
PHP
Raw Normal View History

2021-10-04 16:24:39 +00:00
<?php
namespace App\Providers;
use App\Events\InsuranceEvent;
use App\Events\InsuredConsultation;
use App\Listeners\InsuredConsultationNotification;
use App\Listeners\NotifyUser;
2021-10-04 16:24:39 +00:00
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
\App\Events\ExampleEvent::class => [
\App\Listeners\ExampleListener::class,
],
InsuranceEvent::class => [
NotifyUser::class
],
InsuredConsultation::class => [
InsuredConsultationNotification::class
]
2021-10-04 16:24:39 +00:00
];
}