Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

digitalformula's avatar

Upgrading to 5.4 and now getting 'Your requirements could not be resolved to an installable set of packages.'

Changed composer.json to contain this:

"laravel/framework": "5.4.*",

Now I'm getting this (looks like a problem with laravelcollective/html and I can't find any mention of a new laravelcollective package version in the upgrade guide):

Problem 1
    - Conclusion: don't install laravel/framework v5.4.3
    - Conclusion: don't install laravel/framework v5.4.2
    - Conclusion: don't install laravel/framework v5.4.1
    - laravelcollective/html v5.3.0 requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.29], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
    - laravelcollective/html v5.3.0 requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.29], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
    - Can only install one of: laravel/framework[v5.4.0, v5.3.29].
    - don't install illuminate/view v5.3.0|don't install laravel/framework v5.4.0
    - don't install illuminate/view v5.3.16|don't install laravel/framework v5.4.0
    - don't install illuminate/view v5.3.23|don't install laravel/framework v5.4.0
    - don't install illuminate/view v5.3.4|don't install laravel/framework v5.4.0
    - Installation request for laravel/framework 5.4.* -> satisfiable by laravel/framework[v5.4.0, v5.4.1, v5.4.2, v5.4.3].
    - Installation request for laravelcollective/html ^5.3.0 -> satisfiable by laravelcollective/html[v5.3.0].

The laravelcollective line on composer.json looks like this, as per the documentation:

"laravelcollective/html": "^5.3.0",

That's the only change I've made. The complete composer.json file looks like this:

{
    "name": "Blah",
    "description": "The Laravel Framework Boilerplate Project.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.4.*",
        "laravelcollective/html": "^5.3.0",
        "laravel/socialite": "^2.0",
        "creativeorange/gravatar": "~1.0",
        "davejamesmiller/laravel-breadcrumbs": "^3.0",
        "hieu-le/active": "~2.0",
        "arcanedev/log-viewer": "~4.0",
        "arcanedev/no-captcha": "~3.0",
        "yajra/laravel-datatables-oracle": "~6.0",
        "gazatem/glog": "dev-master"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.0",
        "symfony/css-selector": "3.1.*",
        "symfony/dom-crawler": "3.1.*",
        "barryvdh/laravel-debugbar": "^2.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "files": [
            "app/helpers.php"
        ]
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    }
}
0 likes
9 replies
digitalformula's avatar

Brand new Laravel 5.4 project and I've run this:

composer require laravelcollective/html

The result is this:

Using version ^5.3 for laravelcollective/html
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

laravelcollective isn't supported by Laravel 5.4? The package's composer.json suggests not, as it specifically requires v5.3 of the relevant Laravel packages.

lara25260's avatar

Laravel collective package is separate to laravel.

Check its latest version and match it in the composer.json.

If not exists, then it's not supported.

Some people don't post guides for their packages on every change.

arnoldp's avatar

I had the same issue .... Remove that entry in composer.json :)

digitalformula's avatar

@CrushCandy Yeah I know, but I was surprised that this turned out to be the issue. With native forms and HTML being removed from Laravel a few versions ago and moved to the Laravel Collective packages, it makes no sense (to me) to release Laravel 5.4 without an updated laravelcollective/html version being released at the same time. Especially since Taylor is listed as one of the developers for Laravel Collective.

digitalformula's avatar
digitalformula
OP
Best Answer
Level 1

Just checked the GitHub repo for laravelcollective/html and can see it was updated 3 hours ago. A bunch of changes have appeared that should fix the issue I'm having + one of the commits shows it was done to fix composer.json (which now shows 5.4.* of the Laravel packages - I'm pretty sure it said 5.3.* when I looked yesterday).

That'll fix it. :)

1 like
Nielson's avatar

I can confirm. laravelcollective/html has been updated to 5.4.* and it works like a charm now :)

1 like

Please or to participate in this conversation.