What Features Does Laravel 9.4 Include?

Laravel released its latest version of the web application framework earlier this year, and has issued four updates to ensure customers are able to use the best version of the website builder.

On February 8th, it launched Laravel 9, with a PHP of 8.0 – 8.1, following its last release in September 2020.

While previous developments were launched every six months, it changed this to annually to give itself the chance to “ship amazing, powerful new features without introducing breaking changes”.

It prides itself on developing Laravel 8 without breaking backwards compatibility, such as parallel testing, improving Breeze starter kits, HTTP client improvements, and new Eloquent relationship types.

A spokesperson for the company stated: “This commitment to ship great new features during the current release will likely lead to future ‘major’ releases being primarily used for ‘maintenance’ tasks such as upgrading upstream dependencies, which can be seen in these release notes.”

Following this release, it launched Laravel 9 just last month, improving on the previous version. The latest version includes support for Symfony 6.0 components, Symfony Mailer, Flysysten 3.0, implicit route bindings, improved route:list output, new Eloquent accessor / mutator syntax, a Laravel Scout database driver, and several bug fixes.

There are also countable usability improvements with the Laravel 9 version. These include being able to define the common controller for all the routes within the group.

Users can also specify the slot name using a shorter syntax instead of having to use a name attribute on the x-slot tag.

Additionally, there is the opportunity to use the @checked directive to see if a HTML checkbox input is “checked” and the @selected directive to see whether a select option should be “selected”.

With Laravel 9, there have been improvements in the validation of nested array data; the ignition exception page; route:list; CLI Output and Collections IDE support.

This version has also introduced two functions that make the process simpler and more convenient.

Its latest update, Laravel 9.4, was launched last week (March 9th), with a few extra features to benefit customers. These include the ability to override CSRF cookies.

Laravel stated: “There are some cases in multi-tenant systems that the user might want to change the CSRF token name to prevent 419 errors. Multiple Auth providers make this happen as well mainly in XHR requests. This also allows multi-tenant systems to update the token’s domain (i.e pull the current tenant’s custom domain) from the middleware layer.”

Additionally, Matthew Hailwood created a ‘soleValue()’ method to allow query builders to return a column from the sole value, rather than from the whole record.

Vincent Prat added a ‘lcfirst()’ method to the ‘Str’ and ‘Stringable’ classes, supporting non-ASCII characters, while a ‘Has Mutex’ column has been added to the ‘schedule:list’ command, revealing if a mutex blocks a command.

Hafez Divandari added the ability to modify a ‘char’ column type and MaxGiting contributed the function to specify a ‘retryUntil()’ method or ‘timeoutAt’ to queued mailables.

A few bugs have also been fixed since the release of Laravel 9, including repairing middleware sorting for authenticating sessions, fixing takeUntilTimeout method of LazyCollection, preventing serialising default values of queued jobs, and amending directory for nested markdown files for mailables.

 

For help with your website, get in touch with our white label development agency today.