【问题标题】:laravel 5.4 : Laravelcollective/html v5.3.0 requires illuminate/view 5.3.*laravel 5.4 : Laravelcollective/html v5.3.0 需要Illumination/view 5.3.*
【发布时间】:2017-06-10 05:55:22
【问题描述】:

我使用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 github 页面中已经有两个问题文件。您可能需要检查一下
  • Cerlin Boss 和 PaladiN 说的是正确的。对您的问题稍作修正,laravel 5.4 什么时候支持 Laravelcollective/html? 我想应该是 LaravelCollective/html 支持 Laravel 5.4..

标签: php forms laravel laravelcollective


【解决方案1】:

更新:

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",
}

然后运行

作曲家更新

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

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

【讨论】:

  • 完美。谢谢,不会再发这样的问题了:)
  • @Gamer 解决方案已更新。现在LaravelCollective 支持Laravel 5.4
  • 好朋友,谢谢
【解决方案2】:

注意:此答案是在 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

【讨论】:

  • 兄弟我有点困难,如何配置repo?
  • 应该添加到composer.json。或者,您可以在控制台composer config repositories.laravelcollective vcs git@github.com:st3f/html.git 中运行此命令
猜你喜欢
  • 1970-01-01
  • 2017-01-20
  • 2015-05-10
  • 2018-04-15
  • 1970-01-01
  • 2017-03-26
  • 2018-04-23
  • 1970-01-01
  • 2016-05-10
相关资源
最近更新 更多