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
laravel 5.4 : Laravelcollective/html v5.3.0 requires illuminate/view 5.3.*
提问by Gammer
I was using Laravelcollective/html v5.3.0
with 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.0
用laravel 5.3
。现在我正在使用laravel 5.4
. 我有使用Laravelcollective/html v5.3.0
.
The composer require laravelcollective/html
gives 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.4
but 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.0
requires 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.4
is 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's
git repository as he had done some changes that is not yet provided in [email protected]:st3f/html.git
repository.
或者,您可以使用maddhatter's
git 存储库,因为他做了一些尚未在[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 Boss
answer
或者,如果您不需要这些更改,您可以按照Cerlin Boss
答案
回答by Cerlin
NOTE: This answer was posted when laravelcollective/html
was 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.json
run,
要在不手动编辑composer.json
运行的情况下自动添加,
composer config repositories.laravelcollective vcs [email protected]:st3f/html.git
Require the dev-master
as 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 vcs
repo reference and change the dev-master
to 5.4
一旦原始 repo 作者发布了对 5.4 的支持,只需删除vcs
repo 引用并将其更改dev-master
为5.4