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.
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
"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.
We also should update the minimum-stability setting in our application composer.json file to 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 Chauhan(Swapinfoway Founder)
We Are Also Recommending You :
- How to Get Browser Name and Version in Laravel
- Laravel Pagination With Search Filter Not Working
- Laravel 10 Sanctum API Authentication Tutorial Example
- Parent OrderBy From Many Child's Laravel Example
- How To Get Current Request Method Post Patch Get In Laravel - PHP
- How To Add Google reCAPTCHA v3 In HTML Form Based PHP/Laravel Website
- How To Change The Views Or Blade File Path In Laravel
- How To Filter/Search Single Column Multiple Id Stored Laravel
- Livewire File Upload Laravel
- Laravel 10 CRUD Operation With YouTube Video Tutorial