osb/app/Providers/EventServiceProvider.php

37 lines
714 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use App\Listeners\ProviderPaymentCreated;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'Illuminate\Mail\Events\MessageSent' => [
'App\Listeners\LogSentMessage',
],
\App\Events\ProviderPaymentCreated::class => [
ProviderPaymentCreated::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
}
}