我试图在Laravel 6.2中安装composer require"laravelcollective.html":"^5.4.0">。composer.json是:
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0"
然而,我得到的错误如下:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v6.5.0
- Conclusion: don't install laravel/framework v6.5.0
- laravelcollective/html 5.4.x-dev requires illuminate/view 5.4.* -> satisfiable by illuminate/view[5.4.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
是因为该命令不支持最新版本的laravel吗?因为我发现的最新命令是v5.8。如果是的话,有什么方法可以将laravel 6.2版本替换为旧版本吗?
使用6.0版本,最新版本的laravel有很多突破性的更改,所以也要注意它们的文档。对于安装newst版本,只需运行composerrequire laravelcollective/html
阅读更多
如果您需要最后一个版本,请尝试运行
composer require laravelcollective/html