Laravel Tutorial
- What is Laravel?
- Upgrade Laravel To 8.X
- Laravel Media Library
- Role Management
- Newsletter Package
- Form-Package
- Laravel Vs WordPress CMS
- New Laravel 6.X
- How To Make API In Laravel
- Laravel RSS/XML Feed
- How To Make Theme In Laravel?
- Laravel Project Testing Using PHPunit
- Laravel Package
- Make Contact Form In Laravel
- Laravel Homestead
- Laravel Cron Job
- What is Composer
- How to create an Admin-Panel in Laravel
- Admin Panel in Laravel
- Installation of Laravel in Windows
- Laravel Development
- Benefits of Laravel
- Laravel Notification
- How to make a Blog in Laravel
- Laravel Authentication
In this section, here I’ll discuss how to upgrade Laravel7.x to new Laravel8.x.
PHP version:
For upgrading to laravel8.x you must have PHP version 7.3.0 (Must needed 7.3 or higher php version).
Upgrade Dependencies
For upgrading your project open file composer.json and edit/update the following dependencies version:
guzzlehttp/guzzle to ^7.0.1
facade/ignition to ^2.3.6
laravel/framework to ^8.0
laravel/ui to ^3.0
nunomaduro/collision to ^5.0
phpunit/phpunit to ^9.0
facade/ignition to ^2.3.6
laravel/framework to ^8.0
laravel/ui to ^3.0
nunomaduro/collision to ^5.0
phpunit/phpunit to ^9.0
Note: This is important, If you’re using any packages in your laravel project so go to the GitHub or their website and check their upgrade guide or latest version supported to Laravel8.x or not. If package supported the latest laravel version then update the dependencies like above one.
For example,
In my project I’ve used the laravel telescope with version 3.2 => “laravel/telescope”: “^3.2”,
So, upgrade to this into new one check the latest version of this package and update this, “laravel/telescope”: “^4.1.0”,
After setup all of these dependencies, run these commands:
- Open your terminal and run the composer update command for upgrade the project into new one.
- After completing the composer update command run this command next:
composer require laravel/legacy-factories
Leave a Reply