Artisan `make` Commands Automa... Note
Laravel News

Artisan make Commands Automatically Chop .php Extension in Laravel 11.12

The Laravel v11.12 release introduces several enhancements, including a multiply() method for collections to multiply their items, and the ability to add event discovery paths dynamically. Laravel now automatically chops the .php extension when passing it to make commands, simplifying file generation. Additionally, bug fixes and performance improvements have been implemented.The multiply() method multiplies the values in a collection by a specified number.The addEventDiscoveryPaths() method allows developers to add custom paths for event discovery.Various bug fixes address issues with shift() on empty collections, typographical errors, and the handling of PHP_MAXPATHLEN.Performance optimizations have been made to the collection before/after methods.Other improvements include enhanced error messages for Bus::assertNothingDispatched(), Event::assertNothingDispatched(), Mail::assertNothingSent(), and Notification::assertNothingSent().Generics have been added to the tap() helper.Deprecated type attributes have been removed from the exception renderer.Validation attribute handling has been fixed when translations are missing or empty.Useless variable assignment has been removed.