laravel 5.4 : Laravelcollective/html v5.3.0 需要 illuminate/view 5.3.*

laravel 5.4 : Laravelcollective/html v5.3.0 requires illuminate/view 5.3.*

我正在使用 Laravelcollective/html v5.3.0laravel 5.3。现在我正在使用 laravel 5.4。我有使用 Laravelcollective/html v5.3.0.

的表格

composer require laravelcollective/html 给我以下错误:

Installation request for laravelcollective/html ^5.3 -> satisfiable by laravelcollective/html[v5.3.0].
-Conclusion: remove laravel/frameworkv5.4.0
 - Conclusion: don't install laravel/framework v5.4.0

什么时候laravel 5.4支持Laravelcollective/html

更新:

Laravelcollective/html 已更新为 Laravel 5.4,但到目前为止文档中没有任何更改。 如果您想查看拉取请求,就在这里:

https://github.com/LaravelCollective/html/pull/276

https://github.com/LaravelCollective/html/pull/284

只需使用:

composer require "laravelcollective/html":"^5.4"

或者,

composer require laravelcollective/html

如果不想指定版本,获取相同最新版本的LaravelCollective。

较早的问题:

Laravelcollective/html v5.3.0 需要 Laravel 5.3 但尚不支持 Laravel 5.4.

laravelcollective/html v5.4 正在处理问题:

https://github.com/LaravelCollective/html/pull/276

随时可以合并

关注一下。

编辑:

或者您可以使用 maddhatter's git 存储库,因为他做了一些 git@github.com:st3f/html.git 存储库中尚未提供的更改。

只需将其添加到您的 composer.json

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/maddhatter/html.git"
        }
],
"require": {
     "laravelcollective/html": "5.4.x-dev",
}

和运行

composer update

或者,如果您不需要这些更改,您可以按照 Cerlin Boss 回答

注意:此答案是在 laravelcollective/html 不支持 laravel 5.4

时发布的

出于开发目的,您可以使用 5.4

的拉取请求中的源回购协议

配置存储库

"repositories": {
    "laravelcollective": {
        "type": "vcs",
        "url": "git@github.com:st3f/html.git"
    }
}

无需手动编辑即可自动添加 composer.json 运行,

composer config repositories.laravelcollective vcs git@github.com:st3f/html.git 

需要 dev-master 因为它有针对 5.4

的更改
"laravelcollective/html": "dev-master"

一旦原始 repo 作者发布了对 5.4 的支持,只需删除 vcs repo 引用并将 dev-master 更改为 5.4