Laravel 5 introduces the `php artisan event:generate` command, which automatically generates event and handler class files based on bindings defined in the `EventServiceProvider`. Instead of manually creating each file and binding them together, developers can declare event-to-handler mappings in the `$listen` property and run a single Artisan command to scaffold all the necessary files, complete with type hints.

3m read timeFrom mattstauffer.com
Post cover image
Table of contents
Enter event:generateMake it happenThat was easy, right?
2 Impressions