erp/app/Providers/EventServiceProvider.php

41 lines
963 B
PHP
Raw Normal View History

2022-07-23 17:07:13 +08:00
<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
2022-08-08 10:43:59 +08:00
use App\Listeners\SendDatabaseNotification;
use App\Listeners\BindBusinessGoods;
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 = [
Registered::class => [
SendEmailVerificationNotification::class,
2022-08-08 10:43:59 +08:00
SendDatabaseNotification::class,
BindBusinessGoods::class,
UpdateBusinessGoodsStock::class,
2022-07-23 17:07:13 +08:00
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}