Included in this release is the ability to have the framework automatically register your events and listeners.
To do so, define the shouldDiscoverEvents method on your application's EventServiceProvider .
To enable event discovery, this method should return true :public function shouldDiscoverEvents () { return true ; }By default, all listeners within your application's Listeners directory will be scanned.
In production, you likely do not want the framework to scan all of your listeners on every request.
This manifest will be used by the framework to speed up the event registration process.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners