php laravel 5.4 : Laravelcollective/html v5.3.0 需要照明/视图 5.3.*

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41845042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 02:28:43  来源:igfitidea点击:

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

phpformslaravellaravelcollective

提问by Gammer

I was using Laravelcollective/html v5.3.0with laravel 5.3. Now i am using laravel 5.4. I have forms which are using Laravelcollective/html v5.3.0.

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

The composer require laravelcollective/htmlgives me the following error:

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

When gonna laravel 5.4 support Laravelcollective/html?

Laravel 5.4Laravelcollective/html什么时候支持?

回答by PaladiN

Update:

更新:

The Laravelcollective/html has been updated to Laravel 5.4but there is no any changes in the documentation till now. If you want to see the pull request it is right here:

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

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

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

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

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

Just use:

只需使用:

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

Or,

或者,

composer require laravelcollective/html

If you don't want to specify the version and get the same latest version of LaravelCollective.

如果您不想指定版本并获得相同的 LaravelCollective 最新版本。

Older Issue:

较旧的问题:

Laravelcollective/html v5.3.0requires Laravel 5.3 and not yet supports Laravel 5.4.

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

The laravelcollective/html v5.4is under open issue:

laravelcollective/html v5.4正在悬而未决的问题:

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

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

It could be merged any time.

它可以随时合并。

Just have an eye on it.

只是看看它。

Edit:

编辑:

Alternatively you could use maddhatter'sgit repository as he had done some changes that is not yet provided in [email protected]:st3f/html.gitrepository.

或者,您可以使用maddhatter'sgit 存储库,因为他做了一些尚未在[email protected]:st3f/html.git存储库中提供的更改。

Just add it into your composer.json

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

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

and run

并运行

composer update

作曲家更新

Or, if you don't need those changes you could follow Cerlin Bossanswer

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

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

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

回答by Cerlin

NOTE: This answer was posted when laravelcollective/htmlwas not supporting laravel 5.4

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

For dev purpose you can use the origin repo from the pull request for 5.4

出于开发目的,您可以使用5.4的拉取请求中的原始存储库

Configure the repo

配置仓库

"repositories": {
    "laravelcollective": {
        "type": "vcs",
        "url": "[email protected]:st3f/html.git"
    }
}

To add this automatically without manually editing the composer.jsonrun,

要在不手动编辑composer.json运行的情况下自动添加,

composer config repositories.laravelcollective vcs [email protected]:st3f/html.git 

Require the dev-masteras it has the changes for 5.4

需要 ,dev-master因为它对 5.4 进行了更改

"laravelcollective/html": "dev-master"

Once the original repo author releases the support for 5.4, just remove the vcsrepo reference and change the dev-masterto 5.4

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