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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners