我一直在关注Laravel网站5.5上提供的升级指南 - > 5.6 https://laravel.com/docs/5.6/upgrade
当我运行作曲家安装时,一切似乎都没问题,但随后我运行作曲家更新一切都变得不稳定,这似乎是我应该关注的事情,我该如何解决?
您的要求无法解析为可安装的软件包。
Problem 1
- Installation request for orchestra/testbench 3.6.2 -> satisfiable by orchestra/testbench[v3.6.2].
- Conclusion: don't install laravel/framework v5.6.7
- Conclusion: don't install laravel/framework v5.6.6
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- don't install laravel/framework v5.6.4|remove laravel/framework v5.5.19
- don't install illuminate/database v5.5.0|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.16|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.17|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.2|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.28|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.33|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.34|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.35|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.36|don't install laravel/framework v5.6.4
- orchestra/testbench v3.6.2 requires laravel/framework ~5.6.4 -> satisfiable by laravel/framework[v5.6.4, v5.6.5, v5.6.6, v5.6.7].
- Conclusion: don't install laravel/framework v5.6.5
- Installation request for sofa/eloquence ~5.5.1 -> satisfiable by sofa/eloquence[v5.5.1].
这是我的作曲家文件的样子
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.6.*",
"ext-ldap": "*",
"tymon/jwt-auth": "0.5.*",
"adldap2/adldap2-laravel": "3.0.*",
"barryvdh/laravel-cors": "*",
"regulus/activity-log": "0.5.*",
"backup-manager/laravel": "^1.2.2",
"league/flysystem-sftp": "^1.0",
"intervention/image": "^2.3",
"sofa/eloquence": "~5.5.1",
"sofa/eloquence-base":"~5.5",
"shiftonelabs/laravel-nomad": "^1.0",
"predis/predis": "^1.1",
"shiftonelabs/laravel-cascade-deletes": "^1.0",
"kalnoy/nestedset": "^4.3",
"laravel/tinker": "^1.0",
"guzzlehttp/guzzle": "~6.0",
"pusher/pusher-php-server": "~3.0",
"swiftmailer/swiftmailer":"^6.0",
"fideloper/proxy":"~4.0"
},
"require-dev": {
"laravel/dusk": "~2.0.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~7.0",
"filp/whoops": "~2.0",
"orchestra/testbench":"3.6.2",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"laracasts/generators": "dev-master as 1.1.4",
"barryvdh/laravel-ide-helper": "^2.4"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
],"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true
},
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk"
]
}
}
}
答案 0 :(得分:4)
看起来sofa/eloquence
5.5.1需要Laravel 5.5,这会阻止您升级到Laravel 5.6。
看起来他们三天前发布了一个与Laravel 5.6兼容的软件包;您可以编辑您的作曲家文件,将其版本更改为5.6并运行composer update
。
"sofa/eloquence": "^5.6",
"sofa/eloquence-base":"^5.6",
答案 1 :(得分:0)
根据文件说明:
Laravel 5.6需要PHP 7.1.3或更高版本。
尝试使用:
更改您的composer.json"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"minimum-stability":"dev",
"prefer-stable": true
}
如果有帮助请告诉我
修改强>
尝试更改配置:
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object
并检查所有必需的插件是否支持最新版本的laravel。