Fallback Image
Fallback Image

Release Time –

Laravel 9.0

After 17 months of waiting, Laravel 9.0 was released on 8 February with many useful and exciting new features. An overview can be found here.

Since the release of Laravel 8.0 in September 2020, Laravel has moved from semi-annual to annual releases. This was intended to reduce the maintenance burden for the community. With Laravel 9.0, the longed-for next version of the PHP framework with long-term support appeared on 8 February. After the original release was planned for September 2021, the date was postponed due to the release of Symfony 6.0.

Laravel Versionen von 2019 bis 2023

Laravel Versionen von 2019 bis 2023

As Laravel CEO Taylor Otwell already announced at the Laravel DACH Meetup in November, Laravel 9.0 brings some changes with it. Because V9 is based on Symfony 6.0, which requires at least PHP 8, the same applies to Laravel 9.0. The current minimum required PHP version is 8.0.2. With V9, Laravel has also migrated from Flysystem 1.x to 3.x. Flysystem controls all file manipulation methods provided by the Storage Facade. As part of this, some changes may be required within the application even though efforts have been made to make the transition as seamless as possible. One of the biggest changes in Laravel 9.0 is the move from SwiftMailer, which will no longer be developed as of December 2021, to Symfony Mailer.

New Design for routes:list

The routes:list command has been included in Laravel for some time now. Until now, it could become confusing when trying to define large and complex routes and display them in the console. This has been revised in V9 and a new design has been developed.

New Option for Test Coverage

The new artisan test -coverage option displays the test coverage directly on the terminal. This also includes the -min option to specify a minimum threshold for test coverage.

Migration Standard Anonymous

In early 2021, Laravel 8.37 came out with a new feature called Anonymous Migrations that prevents migration class name collisions. With Laravel 9.0, this will be the default setting when running php artisan make:migration.

New Query Builder Interface

For developers who rely on type hints for static analysis, refactoring, or code completion in their development environment (IDE), the lack of a common interface or inheritance between Query/Builder, Eloquent/Builder and Eloquent/Relation could previously cause problems. The new feature adds a new Illuminate/Contracts/Database/QueryBuilder interface and an Illuminate/Database/Eloquent/Concerns/DecoratesQueryBuilder trait that implements the interfaces instead of the existing _call implementation.

More Information About Laravel 9.0

All changes in Laravel 9.0 are described in detail here. An overview of all the new functions and optimisations can also be found on Laracasts with Jeffrey Way. The release of the new Laravel version was also timed to this year's Laracon Online Winter Edition, which is available for free on YouTube. Taylor Otwell used this opportunity to demonstrate some new functionalities live. Many other interesting talks on topics such as "Digital Nomadding", "Modularising the Monolith" and "Web 3.0 and Laravel" are worth a look at the recording.

Looking for More

Information About Laravel?

to the Meetup