Upgrade Laravel 7 to Laravel 8 | Update Laravel 7.0 Website to Laravel 8.0
7.6 هزار بار بازدید -
4 سال پیش
-
We are going to upgrade
We are going to upgrade our Laravel 7.0 project to Laravel 8.0 by taking below simple steps.
1) Update composer.json file :-
First of all, update composer.json file to upgrade PHP version from 7.2.5 to 7.3 and laravel/framework to 8.0.* from 7.0 along with some other dependencies as shown in video.
Updated dependencies must look like below :-
"require": {
"php": "^7.3",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0"
},
2) Update Pagination :-
Most of the projects users Pagination and we need to update it for its working in Laravel 8 as well.
We have upgraded our Laravel 7 E-commerce project to Laravel 8 and upgrade its pagination as shown in video.
2.1) Include Paginator class :-
use Illuminate\Pagination\Paginator;
2.2) Call useBootstrap function from Paginator class :-
Paginator::useBootstrap();
3) Run "composer update" command :-
Now run "composer update" command to finally upgrade Laravel 7 to 8
4) Verify Laravel version :-
Now you can verify the laravel version by running below artisan command :-
php artisan --version
In my case, it's coming like Laravel Framework 8.0.3, check yours.
5) Run Laravel Project :-
Now run your laravel project by running below artisan command :-
php artisan serve
Check everything if working fine after updating your project to Laravel 8.0
Thanks for watching :)
Please join the channel as premium member to get full support / complete code :-
youtube.comhttps://www.seevid.ir/fa/result?ytch=UCExO2i-tLU1NyVZD6zOJQlw/join
4 سال پیش
در تاریخ 1399/06/20 منتشر شده
است.
7,678
بـار بازدید شده