Article Image

What’s New In Laravel 9 Features [Upgrade From Laravel 8 To 9].

30th March 2022

Introduction

Laravel is an open-source framework that mainly works on PHP and advanced PHP frameworks. Laravel has now released its new version Laravel 9. This new version got released on 8th February 2022. Before releasing Laravel 9, the creators have already introduced three versions, including Laravel 8, Laravel 7, and Laravel 6. Laravel is widely used to develop MVC-based object-oriented and high-performing web apps.

Latest Features of Laravel 9

Laravel 9 has officially been released, and if you are wondering what the new features of Laravel 9 are, then here’s a quick list.

  • Laravel 9 has a minimum requirement of PHP 8.0.
  • New Design for routes: list is provided in Laravel 9, which was much needed as in previous versions. It was hard to manage big routes in the console.
  • In the latest version of Laravel, Anonymous Stub Migrations are kept as default.
  • Laravel 9 has improved themes on an exceptional page. With this exponential feature, you can customize or choose available themes at your convenience.

  • Laravel 9 provides New Query Builder Interface, making it easier for developers to work with.
  • Laravel 9 has made some major improvements required in the Laravel 8, including Symfony 6.0 support. Flysystem 3.0 has improved more in comparison to previous versions.
  • Creators of Laravel 9 have tried to solve the issues occurring in the bugs and usability.
return Model::query()
2 ->whereNotExists(function($query) {
3 // $query is a Query\Builder
4 })
5 ->whereHas('relation', function($query) {
6 // $query is an Eloquent\Builder
7 })
8 ->with('relation', function($query) {
9 // $query is an Eloquent\Relation
10 });
  • PHP string function is one of the key features of Laravel 9 to look after, because this new version is more focused on using PHP 8.0 and its string function that includes str_contains() and many more.

Laravel 9 provides long-term support, similar to Laravel 6. Laravel 9 will provide the longest maintenance and support guidance. You will get two years of support to fix bugs, which will remain until February 2024. For Security support, it will be for three years which will last till 2025.

Key Reasons to choose Laravel 9 over Laravel 8

  • Laravel 9 has provided default timeout in HTTP clients for 30sec. This step will help avoid hangs occurring in the previous version.
  • Laravel 9 has shifted from SwiftMailer to Symfony Mailer, which provides more consistency to your application.

Conclusion

The Creators of Laravel 9 tries to provide the best solution to their users, and for that, they always try to come up with new updated versions every year. However, for Laravel 9 they took two years to introduce. This new version has Laravel 9 new features that will help you develop your web apps easily.

Want to get the latest news from us?

© Copyright 2024 EvolutIT