<?phpnamespaceApp\Providers;useIlluminate\Support\Facades\Event;useIlluminate\Foundation\Support\Providers\EventServiceProviderasServiceProvider;classEventServiceProviderextendsServiceProvider{/** * The event listener mappings for the application. * * @var array */protected$listen=['App\Events\Event'=>['App\Listeners\EventListener',],];/** * Register any events for your application. * * @return void */publicfunctionboot(){parent::boot();//}}