作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将 laravel 6 升级到 7,但出现错误。
our requirements could not be resolved to an installable set of
packages.
Problem 1
- Conclusion: remove laravel/framework v6.0.3
- Conclusion: don't install laravel/framework v6.0.3
- laravel/ui 2.x-dev requires illuminate/console ^7.0 -> satisfiable by illuminate/console[7.x-dev, v7.0.0],
laravel/framework[7.x-dev].
- laravel/ui v2.0.0 requires illuminate/console ^7.0 -> satisfiable by illuminate/console[7.x-dev, v7.0.0],
laravel/framework[7.x-dev].
- Can only install one of: laravel/framework[7.x-dev, v6.0.3].
- don't install illuminate/console 7.x-dev|don't install laravel/framework v6.0.3
- don't install illuminate/console v7.0.0|don't install laravel/framework v6.0.3
- Installation request for laravel/framework (locked at v6.0.3, required as ^6.0) -> satisfiable by laravel/framework[v6.0.3].
- Installation request for laravel/ui ^2.0 -> satisfiable by laravel/ui[2.x-dev, v2.0.0].
最佳答案
只要按照文档,你一定已经安装了 php7.2.5
Update your laravel/framework dependency to ^7.0 in your composer.jsonfile.
In addition, update your nunomaduro/collision dependency to^4.1,
phpunit/phpunit dependency to ^8.5,
facade/ignition to> `^2.0
App\Exceptions\Handler
的报告和渲染方法类应该接受
的实例可 throw 接口(interface)而不是异常实例:
use Throwable; // add this line
public function report(Throwable $exception); // replace Exception with Throwable
public function render($request, Throwable $exception); // replace Exception with Throwable
在那次运行之后
composer update
关于php - 如何将 laravel 6 升级到 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60520220/
我是一名优秀的程序员,十分优秀!