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

Raidboxes-Dev's avatar

Problem with upgrading to laravel 11 from laravel 10

I am trying to upgrade to laravel 11, but keep getting this error message:

" Only one of these can be installed: illuminate/cache[v10.0.0, ..., v10.48.3], laravel/framework[v11.0.0, ..., v11.0.7]. laravel/framework replaces illuminate/cache and thus cannot coexist with it. "

My composer.json packages:

  "require": {
        "php": "^8.2",
        "ext-pdo": "*",
        "appstract/laravel-opcache": "^4.0.2",
        "composer/class-map-generator": "^1.0",
        "composer/composer": "^2.3.6",
        "fakerphp/faker": "^1.21",
        "guzzlehttp/guzzle": "^7.5",
        "laravel/framework": "^11.0",
        "laravel/horizon": "^5.14",
        "laravel/sanctum": "^4.0",
        "laravel/telescope": "^5.0.0",
        "laravel/tinker": "^2.8",
        "moneyphp/money": "^4.0",
        "onecentlin/laravel-adminer": "^6.0",
        "predis/predis": "^1.1",
        "prwnr/laravel-streamer": "^3.4",
        "sentry/sentry-laravel": "^3.2.0",
        "spatie/guzzle-rate-limiter-middleware": "^2.0",
        "spatie/laravel-query-builder": "^5.0",
        "spatie/laravel-ray": "^1.32",
        "spatie/laravel-webhook-client": "^3.1"
    },
0 likes
3 replies
s4muel's avatar

dont you have it in your require-dev section? try searching for "illuminate/cache" in composer.lock file and check which package requires that. i would try removing, upgrading and then installing the problematic package

gych's avatar

Try to run composer remove illuminate/cache

1 like

Please or to participate in this conversation.