erp/app/Providers/EventServiceProvider.php

36 lines
746 B
PHP
Raw Normal View History

2022-07-23 17:07:13 +08:00
<?php
namespace App\Providers;
use App\Listeners\SendDatabaseNotification;
2022-07-23 17:07:13 +08:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
2022-08-08 10:43:59 +08:00
use App\Listeners\UpdateBusinessGoodsStock;
2022-07-23 17:07:13 +08:00
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'App\Events\BusinessOrdersUpdate' => [
2022-08-08 10:43:59 +08:00
UpdateBusinessGoodsStock::class,
SendDatabaseNotification::class,
2022-07-23 17:07:13 +08:00
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}