Php 无法执行composer更新5.7

Php 无法执行composer更新5.7,php,laravel,Php,Laravel,我对php laravel还是新手,因此非常感谢您的帮助 Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: don't install laravel/framework v5.7.9 - Conclusion: remove laravel/framework v5.7.8 - Conclusion: don't in

我对php laravel还是新手,因此非常感谢您的帮助

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/framework v5.7.9
    - Conclusion: remove laravel/framework v5.7.8
    - Conclusion: don't install laravel/framework v5.7.8
    - Conclusion: don't install laravel/framework v5.7.7
    - Conclusion: don't install laravel/framework v5.7.6
    - Conclusion: don't install laravel/framework v5.7.5
    - Conclusion: don't install laravel/framework v5.7.4
    - Conclusion: don't install laravel/framework v5.7.3
    - Conclusion: don't install laravel/framework v5.7.2
    - Conclusion: don't install laravel/framework v5.7.1
    - Conclusion: don't install laravel/framework v5.7.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].
    - laravelcollective/html v5.4 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].
    - laravelcollective/html v5.4.1 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].
    - laravelcollective/html v5.4.2 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].
    - laravelcollective/html v5.4.3 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].
    - laravelcollective/html v5.4.4 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].
    - laravelcollective/html v5.4.5 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].
    - laravelcollective/html v5.4.6 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].
    - laravelcollective/html v5.4.7 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].
    - laravelcollective/html v5.4.8 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].
    - laravelcollective/html v5.4.9 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].
    - don't install illuminate/view 5.4.x-dev|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.0|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.13|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.17|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.19|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.27|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.36|don't install laravel/framework 5.7.x-dev
    - don't install illuminate/view v5.4.9|don't install laravel/framework 5.7.x-dev
    - Installation request for laravel/framework 5.7.* -> satisfiable by laravel/framework[5.7.x-dev, v5.7.0, v5.7.1, v5.7.2, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
    - Installation request for laravelcollective/html 5.4.* -> satisfiable by laravelcollective/html[5.4.x-dev, v5.4, v5.4.1, v5.4.2, v5.4.3, v5.4.4, v5.4.5, v5.4.6, v5.4.7, v5.4.8, v5.4.9].
我实际上正在尝试运行我的php文件,但它显示

找不到类“Collective\Html\HtmlServiceProvider”

所以我在网上搜索,他们说我需要更新,当我尝试更新时,有人知道我需要做什么吗

我还添加了config/app.php


希望任何人都能提供帮助,因为您的composer.json文件有版本为5.4的laravelcollection/html包,该版本与Laravel 5.4兼容,但您使用的是Laravel 5.7,我建议您尝试检查composer.json并更新您添加该包的行:

"laravelcollective/html":"^5.4.0",
完成此操作后,我建议您进行composer更新,如果失败,则您必须删除上面的此软件包,因为它与最新的Laravel版本不兼容,或者当然您可以减少Laravel版本,只要您的应用程序需要就行


另外,每个light/*包实际上都是Laravel的核心代码,这些都是Laravel的基本包。

您的PHP版本是什么?laravelcollective/html v5.4需要light/view 5.4.*->您的环境是否具有light/view 5.4.*或更高版本?请共享有关您运行的命令的更多信息并附加composer.json。看起来你想删除一个包?使用PHP7.1.2如果没有错的话,但我确信它在7以上。我不想删除一个包,实际上我想运行laravel表单,但我不能这样做,因为我没有找到错误类'Collective\Html\HtmlServiceProvider',所以通过减少我的laravel版本,它会影响我的代码吗,这意味着我目前使用的一些语法会改变吗?如果我改为laravel 5.4,如果您使用的是laravel 5.7的最新功能,那么是的,它将破坏您的应用程序,如果您没有,它将不会。你可以查一下
"laravelcollective/html":"^5.4.0",