Created
December 30, 2019 14:54
-
-
Save mgsmus/bba6dd4232e2ebfb95efbd6163b5251f 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 Mgsmus\MyPackage\Providers; | |
use Illuminate\Foundation\Support\Providers\EventServiceProvider; | |
class MyPackageEventServiceProvider extends EventServiceProvider | |
{ | |
protected $listen = [ | |
\Mgsmus\MyPackage\Events\EntityCreated::class => [ | |
\Mgsmus\MyPackage\Listeners\DoSomethingAboutEntity::class, | |
\Mgsmus\MyPackage\Listeners\SendNotificationAboutEntity::class | |
] | |
]; | |
/** | |
* Register any events for your application. | |
*/ | |
public function boot(): void | |
{ | |
parent::boot(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment