Search code examples
phpformslaravellaravelcollective

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


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 ?


Solution

  • 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