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

你说的曾经没有我的故事 提交于 2019-12-21 03:45:14

问题


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.

The composer require laravelcollective/html gives me the following error:

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 ?


回答1:


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:

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

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.

Older Issue:

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

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

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 git@github.com:st3f/html.git repository.

Just add it into your 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

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




回答2:


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

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

Configure the repo

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

To add this automatically without manually editing the composer.json run,

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

Require the dev-master as it has the changes for 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



来源:https://stackoverflow.com/questions/41845042/laravel-5-4-laravelcollective-html-v5-3-0-requires-illuminate-view-5-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!