从5.5升级到Laravel 5.6

时间:2018-02-07 18:36:35

标签: php laravel laravel-5 composer-php laravel-5.6

将Laravel 5.5项目更新为5.6后,我遇到了一个小问题。

所有套餐都已成功更新。

但是一个包仍有问题。

控制台结果:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package fideloper/proxy ~4.0 is satisfiable by fideloper/proxy[4.0.x-dev] but these conflict with your requirements or minimum-stability.

但我已经在我的composer.json中定义了4.0版本

    "require": {
    "php": ">=7.1.3",
    "fideloper/proxy": "~4.0",
    "laravel/framework": "5.6.*",
    "laravel/tinker": "~1.0"
},

在composer.json

中添加2行
    "minimum-stability":"dev",
    "prefer-stable": true

在make autoload命令之后:

composer dump-autoload

出现此错误:

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
  

@php artisan package:发现

In trustedproxy.php line 66:                                        
Undefined class constant 'HEADER_CLIENT_IP'  
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

有什么建议吗? 提前谢谢。

0 个答案:

没有答案