将 laravel 7 迁移到 8 时出错

Getting error while migrating laravel 7 to 8

我正在使用库 upeg/sybase 2.1。当我升级 laravel 8 时,出现以下错误。我该如何解决这个错误?

应用命令时出错 composer update

composer.json

"require": {
    "php": "^7.3.0",
    "ext-curl": "*",
    "ext-json": "*",
    "abram/laravel-odbc": "dev-master",
    "agomez/laravel-odbc-driver": "^1.0",
    "alipek/rtf2html": "dev-master",
    "doctrine/dbal": "^2.10",
    "fideloper/proxy": "^4.2",
    "google/recaptcha": "^1.2",
    "guzzlehttp/guzzle": "^7.0",
    "laravel/framework": "^8.0.1",
    "laravel/helpers": "^1.4",
    "laravel/tinker": "^2.0",
    "laravelcollective/html": "^6.2",
    "fruitcake/laravel-cors": "^1.0",
    "uepg/laravel-sybase": "^2.1.0"
},
"require-dev": {
    "facade/ignition": "^2.0",
    "fzaninotto/faker": "^1.9.1",
    "mockery/mockery": "^1.3.1",
    "nunomaduro/collision": "^4.1",
    "phpunit/phpunit": "^8.5"
},
"config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
},

Problem 1 - Installation request for uepg/laravel-sybase ^2.1.0 -> satisfiable by uepg/laravel-sybase[2.1.0, 2.1.1, 2.1.2, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0, 2.3 .1, 2.4.0]. - Can only install one of: laravel/framework[8.x-dev, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.0.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.0.2, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.0.3, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.0.4, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.1.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.10.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.11.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.11.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.11.2, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.12.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.12.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.12.2, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.12.3, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.13.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.14.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.15.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.16.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.16.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.17.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.17.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.17.2, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.18.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.18.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.19.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.2.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.20.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.20.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.21.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.22.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.22.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.23.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.23.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.24.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.25.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.26.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.26.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.3.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.4.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.5.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.6.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.7.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.7.1, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.8.0, 5.7.x-dev]. - Can only install one of: laravel/framework[v8.9.0, 5.7.x-dev]. - Conclusion: install laravel/framework 5.7.x-dev - Installation request for laravel/framework ^8.0.1 -> satisfiable by laravel/framework[8.x-dev, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.10.0, v8.11.0, v8.11.1, v8.11. 2, v8.12.0, v8.12.1, v8.12.2, v8.12.3, v8.13.0, v8.14.0, v8.15.0, v8.16.0, v8.16.1, v8.17.0, v8.17.1, v8.17.2, v8.18.0, v8.18.1, v8.19.0, v8.2.0, v8.20.0, v8.20.1, v8.21.0, v 8.22.0, v8.22.1, v8.23.0, v8.23.1, v8.24.0, v8.25.0, v8.26.0, v8.26.1, v8.3.0, v8.4.0, v8.5.0, v8.6.0, v8.7.0, v8.7.1, v8.8.0, v8.9.0].

使用最新版本

尝试 "uepg/laravel-sybase": "^2.4.0" 然后 运行 composer update

composer require uepg/laravel-sybase "^2.4.0"

ref link

https://github.com/uepg/laravel-sybase/tags

https://github.com/uepg/laravel-sybase/commit/7f5d8d2ecf78cae08f18e5d342e504a5a641ca4b

您正在尝试在 laravel 8 上安装 uepg/laravel-sybase,但该软件包的最新版本最多只支持 laravel 7。但是 master 分支允许你使用 laravel 8,所以尝试将你的 composer.json 更新为 "uepg/laravel-sybase": "dev-master"

或尝试命令:

composer require uepg/laravel-sybase dev-master