Laravel Upgrading To 10.0 From 9.x Version

  • 11-02-2023
  • 1511
  • Laravel 10
  • Haresh Chauhan

Hello guys, in this tutorial we will upgrade the laravel version to laravel 10, in this post, I will tell you a very simple way to upgrade your laravel application to latest version of the laravel, the latest version of the laravel is 10th version, and this version just lunch by laravel community recently.

Laravel 10 is a version of the Laravel PHP framework. It was released in 2023 and builds upon previous versions of Laravel to provide additional features and improvements.

Upgrade to laravel 10, a much more secure version, and many new features available in this version, so you want to switch to laravel 10, I will tell you all guidelines on how to upgrade your older laravel version application.

Laravel 10 includes several new features and improvements, including support for PHP 8, improved error handling and debugging, and new features for working with multiple mail providers.

PHP Version To 8.1.0 OR greater

For the upgrading to laravel 10 PHP 8.1.0 required or greater. You must need to update your server php version or if you are working on the local system then you must be required to update your apache2 server at your local server first. you must uninstall the old apache version or install new latest PHP version.

Composer Update

After successfully in install above mentioned php or the latest version on your server, we will update the composer laravel dependency, For updating the composer's latest version dependency you should update the below dependencies in the composer.json file.

"laravel/framework": "^10.0",
"spatie/laravel-ignition": "^2.0"

Optional Step (PHPUnit10)

Alternatively, if you like to use PHPUnit10, you should delete the processUncoveredFiles attribute from the section of your application's phpunit.xml configuration file. then, update the following dependencies in the composer.json file :

"nunomaduro/collision": "^7.0"
"phpunit/phpunit": "^10.0"

After all that examine your application's third-party composer dependencies that you're installed via composer, verify that package version with the laravel 10 version, and update the upgrade composer package as well.

Minimum Stability

We also should update the minimum-stability setting in our application composer.json file to stable:

"minimum-stability": "stable",

So this is a simple guide from the upgrading laravel version to the 10.0 version to experience the latest version of the laravel with the new features and more capable with the secure your application. that's it...


We always thanks to you for reading our blogs.


dharmesh-image

Dharmesh Chauhan

(Swapinfoway Founder)

Hello Sir, We are brothers origin from Gujarat India, Fullstack developers working together since 2016. We have lots of skills in web development in different technologies here I mention PHP, Laravel, Javascript, Vuejs, Ajax, API, Payment Gateway Integration, Database, HTML5, CSS3, and Server Administration. So you need our service Please Contact Us

haresh-image

Haresh Chauhan

(Co-Founder)


We Are Also Recommending You :