Update Event Listener Registration Documentation for Laravel 11
Description
This PR updates the event listener registration documentation to provide clarity on the changes in Laravel version 11 and later regarding automatic registration of event listeners. Specifically, the following updates have been made:
Added a detailed comment block explaining that event listeners located in the App\Listeners directory are automatically registered in Laravel 11 and later, eliminating the need for manual registration.
Included a note that if listeners are registered manually in this configuration file, they will be called twice.
Provided guidance for users who plan to store their listeners in different or multiple directories, specifying that they should register such listeners in this configuration file.
Added a note for users of Laravel version 10 or earlier, indicating that corresponding listeners must be registered manually in this configuration file.
Changes
Updated the comment block in the event listener configuration file with detailed explanations and instructions.
Documentation
For more details on event discovery in Laravel 11, please refer to the official documentation.
Testing
No code changes were made, so no testing is required. This PR only updates the documentation within the configuration file.
Update Event Listener Registration Documentation for Laravel 11
Description
This PR updates the event listener registration documentation to provide clarity on the changes in Laravel version 11 and later regarding automatic registration of event listeners. Specifically, the following updates have been made:
App\Listeners
directory are automatically registered in Laravel 11 and later, eliminating the need for manual registration.Changes
Documentation
For more details on event discovery in Laravel 11, please refer to the official documentation.
Testing
No code changes were made, so no testing is required. This PR only updates the documentation within the configuration file.