The Laravel team released version 11.28 this week, packed with improvements and new features that make the framework even more powerful and user-friendly.
One of the most notable changes is the introduction of a new composer run dev command, designed to streamline the development process for fresh Laravel projects. This command provides a convenient way to run development-related tasks directly within the Composer environment.
Furthermore, every new Laravel application now comes pre-configured with a tailwind.config.js file, allowing developers to dive into the world of Tailwind CSS with zero setup. No more installing starter kits or manually setting up configuration files.
A significant contribution from Andreas Alsterholm is the introduction of the CollectedBy attribute. This attribute empowers developers to easily specify a custom collection class for their Eloquent models, eliminating the need to override the newCollection() method. This provides greater control and flexibility over how model data is handled.
For those working with sensitive data, version 11.28 enhances the interactive experience of the env:encrypt and env:decrypt commands. Now, users are guided through a series of prompts, allowing them to either generate a random encryption key or provide their own. Likewise, the env:decrypt command utilizes a clear prompt to enter the key, complete with a password field for added security.
Ryan Holton has added two new methods to the Number facade, offering greater convenience in handling localized and currency-related values. The defaultLocale() method neatly retrieves the default locale setting, while defaultCurrency() returns the configured default currency.
Beyond these highlights, version 11.28 boasts a wide range of improvements, including:
Enhanced support for BackedEnum in Authorizable methods.
Improved handling of null values as the default cursor for PHP Redis.
Refine PHPDoc documentation for clarity and accuracy.
Bug fixes related to escaping resources in database queries.
More precise type-narrowing behavior for the throw_* helpers.
Added methods successful() and failed() to ProcessPoolResults for easier result analysis.
The release notes also mention enhancements in areas like:
Determining pivot timestamps in Eloquent relationships.
Introducing a RouteParameter attribute.
Improved testing practices.
Console support for Laravel Prompts version 0.3+.
The complete list of features and updates can be found in the official release notes and on GitHub, providing detailed information about the specific changes.
This release reinforces Laravel's commitment to continuous improvement, providing developers with a robust and feature-rich framework to build modern web applications. The streamlined workflows, enhanced security features, and improved developer experience all contribute to a more efficient and enjoyable development process.
Whether you're a seasoned Laravel veteran or just getting started, version 11.28 provides a solid foundation for building your next project.
0 comments:
Post a Comment