Skip to content
Excelsior Technologies
4 min read

A technical look at Laravel 9's features

A retrospective look at Laravel 9's key features from its 2022 release. We explain the technical benefits that are now standard in modern Laravel development and how they inform our work.

Written by
Excelsior Technologies
phplaravelweb developmentframeworks

Some Amazing Features Of Laravel 9

This article was first written in early 2022 to cover the features of the then-new Laravel 9. While the framework has since moved on to later versions, the changes introduced in Laravel 9 were significant and are now mature, foundational parts of the platform. This retrospective explains what those features were and why they mattered for developers.

Laravel 9's context: a new release cycle

Before Laravel 9, major versions were released roughly every six months. This pace made it difficult for some teams to keep their applications current. Laravel 9 marked a shift to a new annual release cycle, with version 9 being the first long-term support (LTS) version under this new schedule. This change provided a more predictable upgrade path and a longer support window, giving development teams more stability.

This release was also the first to require PHP 8.0. This allowed the framework to use newer language features, improving performance and developer ergonomics across the board.

Key technical updates in Laravel 9

Anonymous stub migrations

Previously, when two developers on a team created a migration with the same name, it would cause a class name collision. Laravel 9 made anonymous stub migrations the default. These migrations do not have a class name, which eliminates the possibility of these collisions, a small but valuable improvement for team-based development.

Improved CLI route display

For any large application, the list of defined routes can become long and difficult to parse. The php artisan route:list command was redesigned in Laravel 9 with a cleaner, more organised output. This makes it easier for developers to inspect and debug routing, especially in complex projects.

The switch to Symfony Mailer

Laravel 9 replaced the previously used Swift Mailer library with Symfony Mailer. Swift Mailer was no longer being maintained, so this was a necessary change for the long-term health and security of the framework. It also brought Laravel's mail component more in line with the other Symfony components it uses under the hood.

Refined filesystem abstraction

This version upgraded to Flysystem 3.0, the underlying package that handles filesystem interactions. This provided a more robust and consistent API for working with file storage, whether on a local disk or a cloud provider like Amazon S3. The upgrade required some code changes but resulted in a more reliable file handling layer.

Built-in PHP 8 string functions

By requiring PHP 8, Laravel 9 could start using modern, more readable string functions like str_contains(), str_starts_with(), and str_ends_with(). These functions are more intuitive than their older equivalents (like strpos), leading to cleaner and more maintainable code.

Default HTTP client timeout

In previous versions, the default HTTP client could hang indefinitely if a remote server failed to respond. Laravel 9 introduced a default timeout of 30 seconds. This simple change makes applications more resilient by preventing hung processes from consuming server resources.

The trade-off: the cost of staying current

While a new framework version brings improvements, it also requires an investment. Upgrading a production application from one major version to another demands development and testing resources. The move from Laravel 8 to 9, for example, required a bump to PHP 8 and careful updates to dependencies like Flysystem. Skipping versions accumulates technical debt, making future upgrades more difficult and costly. Planning for this regular maintenance is a necessary part of managing a web application's lifecycle.

How we apply these insights

The features that were new in Laravel 9 are now standard practice in our PHP development work. Understanding the evolution of the framework allows us to make better architectural decisions. When we build custom web applications, we consider not just the current feature set but also the long-term maintenance implications of our technology choices. For clients with existing applications, we develop strategies to manage upgrades, ensuring they benefit from the security and performance improvements of modern framework versions.

Hire dedicated developers page on excelsiortechnologies.com

We have built this

How we work at Excelsior

Our dedicated developers work your hours, follow your process and report to you. You see matching profiles within 24 to 48 hours, and you interview them before anyone joins your team.

Hire dedicated developers →

Want this for your business?

Ask ET on our website, or book a free 30-minute call with a project lead, not a salesperson.

Ask AI about Excelsior

Don’t take our word for it.Ask an AI.

Ask ET, our own assistant, or the one you already use. The question is about this page; you can read it, copy it or change it there.

The question we’ll ask
“What does Excelsior Technologies, the software company in Ahmedabad and Toronto, do, what have they built, and would they be a good fit for my project?”

Opens in a new tab with this question. Nothing about you is sent.