Last active
July 2, 2017 08:29
-
-
Save sirawitpra/ad787f5e0fa4c95f777297e107617cfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | |
class EventServiceProvider extends ServiceProvider | |
{ | |
/** | |
* The event listener mappings for the application. | |
* | |
* @var array | |
*/ | |
protected $listen = [ | |
\App\Events\OrderCreated::class => [ | |
\App\Listeners\SendConfirmationEmail::class, | |
\App\Listeners\UpdateStock::class, | |
], | |
\App\Events\StockIsLow::class => [ | |
\App\Listeners\SendStockIsLowEmail::class, | |
] | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment