13

我正在Laravelcollective/html v5.3.0使用laravel 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

4

2 回答 2

23

更新:

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'sgit 存储库,因为他做了一些尚未在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",
}

并运行

作曲家更新

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

https://stackoverflow.com/a/41845331/3887342

于 2017-01-25T06:46:09.437 回答
4

注意:此答案是在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-master5.4 的更改

"laravelcollective/html": "dev-master"

一旦原始 repo 作者发布了对 5.4 的支持,只需删除vcsrepo 引用并将其更改dev-master5.4

于 2017-01-25T07:01:10.843 回答