sample event listener and scaffolding for a module

This commit is contained in:
Nabeel Shahzad
2017-12-02 09:19:58 -06:00
parent b14f4355da
commit df2b092d60
15 changed files with 143 additions and 38 deletions
@@ -0,0 +1,25 @@
<?php
namespace $MODULE_NAMESPACE$\$STUDLY_NAME$\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*/
protected $listen = [
'App\Events\TestEvent' => [
'$MODULE_NAMESPACE$\$STUDLY_NAME$\Listeners\TestEventListener',
],
];
/**
* Register any events for your application.
*/
public function boot()
{
parent::boot();
}
}