Laravel/PHP Articles

Articles from Laravel/PHP sites on the web

Laravel/PHP Articles
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.

Sign Up For Our Newsletter

Each Week, We curate the top Laravel/PHP articles, jobs, events and More!

We'll send you a weekly email with the latest Laravel/PHP articles, jobs and events. Please review our Code of Conduct in the meantime. Talk to you soon!