Laravel 5.5.* 升级到 5.7.* 问题记录
今天发现之前基于5.5的教程支持5.7版本了.匆匆的去改 composer.json
laravel 版本号.运行 composer update 发现报错了.
什么鬼?.
查了网上解决办法:
To make the switch:
1, In app/Http/Kernel.php, if \Fideloper\Proxy\TrustProxies::class is in your $middleware array, remove it. If \App\Http\Middleware\TrustProxies::class is not in your $middleware array, add it.
2, Open your app/Http/Middleware/TrustProxies.php file and update it with your proxies. (本地不存在,没做修改)
3, Delete your config/trustedproxy.php file.(本地不存在,没做修改)
4, Remove Fideloper\Proxy\TrustedProxyServiceProvider::class from your providers array in config/app.php. (配置里没有,不做修改)
5, Update your composer.json file to use "fideloper/proxy": "~4.0". Run composer update fideloper/proxy to update the package.
原文地址: https://stackoverflow.com/questions/485948...
本作品采用《CC 协议》,转载必须注明作者和本文链接