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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners