gpt4 book ai didi

php - Laravel 从 5.6 升级到 Laravel 6

转载 作者:行者123 更新时间:2023-12-04 13:17:56 24 4
gpt4 key购买 nike

我有一个项目 https://github.com/javedbaloch4/Laravel-BookingLaravel 5.6 中开发,现在我想将它升级到 Laravel 6。可以直接升级到6还是先升级到5.7、5.8再升级,步骤是什么?

请指导此处的步骤以便快速升级谢谢。

最佳答案

第 1 步:从您的 composer.json 文件中删除以下内容

"laravelcollective/html": "^5.4.0",
"yajra/laravel-datatables-oracle": "^8.4"

第 2 步:替换此行

"laravel/framework": "5.6.*",

为此

"laravel/framework": "^6.0",

第 3 步:按顺序运行以下命令

composer require laravel/helpers
composer require laravelcollective/html
composer require yajra/laravel-datatables-oracle
composer require yajra/laravel-datatables-buttons
composer require yajra/laravel-datatables-html
composer require yajra/laravel-datatables-fractal
composer require yajra/laravel-datatables-editor
composer update
composer dumpa

Key Point to notice and understand is whenever you want to upgrade make sure all the packages you're using have compatibility with correct versions of laravel and php. Check and follow the repo. on git to get notified if any new upgrades are there.

就是这样,您可以开始了。

关于php - Laravel 从 5.6 升级到 Laravel 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58141723/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com