What’s New in Laravel 9?

Page 1

What’s New in Laravel 9

www.bacancytechnology.com


Quick Summary: Laravel is one of the most popular and desired PHP frameworks to develop enterprise-grade web applications. Here’s a quick sneak peek of Laravel 9 release notes, top new Laravel 9 features, and an introduction to the latest version of Laravel.


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 MVCbased 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.


Example:

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.


If you want to know everything about Laravel 9 in just 45 minutes, then do check their official video.

Video: https://youtu.be/GwunZ5sH2P8


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.


How to Install Laravel 9?


The Installation procedure of Laravel 9 is very easy, and the below steps will help you in how to upgrade to Laravel 9.

Step 1 Create a Laravel project using the below command. composer create-project --prefer-dist laravel/laravel laravel-9-dev test-laravel9

Step 2 What to do if you have a Laravel installer, follow below step laravel new laravel-9-dev test-laravel9


Step 3 After installing Laravel 9, use this command to check your version. cd dev-laravel9 php artisan --version


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. If you are looking for assistance to upgrade your application from Laravel 8 to Laravel 9, then get in touch with us to hire Laravel developer from us and leverage our top-of-the-line Laravel app development services.


Thank You

www.bacancytechnology.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.