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

shimana's avatar

Upgrading laravel to v.10 I got illuminate/support support?

I try to Upgrading To 10.0 From 9.x. But after I applyid some changes in composer.json I got error :

 $ >composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/contracts[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.2.0) does not satisfy that requirement.
    - illuminate/contracts[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.2.0) does not satisfy that requirement.
    - illuminate/contracts[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.2.0) does not satisfy that requirement.
    - Root composer.json requires fruitcake/laravel-cors ^3.0 -> satisfiable by fruitcake/laravel-cors[v3.0.0].
    - fruitcake/laravel-cors v3.0.0 requires illuminate/contracts ^6|^7|^8|^9 -> satisfiable by illuminate/contracts[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0].
    - Only one of these can be installed: illuminate/contracts[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0, v10.0.0], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/contracts and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
 $ >

Now composer.json has :

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.0",
        "fruitcake/laravel-cors": "^3.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "intervention/image": "^2.5",
        "jaybizzle/laravel-crawler-detect": "^1.3",
        "laravel/framework": "^10.0",
        "laravel/jetstream": "^2.0",
        "laravel/sanctum": "^2.6",
        "laravel/scout": "^9.8",
        "laravel/tinker": "^2.0",
        "livewire/livewire": "^2.0",
        "simplesoftwareio/simple-qrcode": "^4.2",
        "yajra/laravel-datatables-oracle": "~9.0"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.5",
        "spatie/laravel-ignition": "^2.0",
        "fakerphp/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        },
        "files": [
            "app/Helpers/CustomHelpers.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi",
            "@php artisan vendor:publish --force --tag=livewire:assets --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

and I do not see any illuminate* packages referenced in it...

How that can be fixed ?

Thanks!

0 likes
7 replies
shimana's avatar

@Sinnbeck I did this I got an error again

 $ >composer update
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/contracts[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.2.0) does not satisfy that requirement.
    - illuminate/contracts[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.2.0) does not satisfy that requirement.
    - illuminate/contracts[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.2.0) does not satisfy that requirement.
    - Root composer.json requires fruitcake/laravel-cors ^3.0 -> satisfiable by fruitcake/laravel-cors[v3.0.0].
    - fruitcake/laravel-cors v3.0.0 requires illuminate/contracts ^6|^7|^8|^9 -> satisfiable by illuminate/contracts[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0].
    - Only one of these can be installed: illuminate/contracts[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0, v10.0.0], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/contracts and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
shimana's avatar

@Sinnbeck thanks you,With your help, my problem was solved.

Remove "fruitcake/laravel-cors" from composer.json

my laravel version now 🙏 :

Laravel Framework 10.0.0
1 like
abhishekkumar's avatar

@Sinnbeck I'm also getting same issue tried multiple way but not success

my composer.json { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.1.0", "ext-json": "", "ext-spltype": "", "aws/aws-sdk-php": "^3.212.1", "docusign/esign-client": "^6.0", "google/apiclient": "^2.12", "google/apiclient-services": "^0.238.0", "guzzlehttp/guzzle": "^7.2", "lanin/laravel-api-debugger": "^4.0", "laravel/framework": "^10.10", "laravel/horizon": "^5.0", "laravel/slack-notification-channel": "^2.0", "laravel/tinker": "^2.8", "laravel/ui": "^4.2", "league/flysystem-aws-s3-v3": "^3.0", "lesstif/php-jira-rest-client": "^2.5", "mailjet/mailjet-apiv3-php": "^1.5", "orangehill/iseed": "^3.0.2", "php-open-source-saver/jwt-auth": "^1.4", "predis/predis": "^1.1", "resque/php-resque": "^1.3", "shivella/laravel-bitly": "^1.1", "soundasleep/html2text": "^2.0.0", "spatie/laravel-ignition": "^2.0", "spatie/laravel-permission": "^5.5", "symfony/console": "^6.0", "twilio/sdk": "^6.9.2", "stripe/stripe-php": "^9.0", "watson/rememberable": "^6.0" }, "replace":{ "illuminate/support": "^6|^7|^8.67|^9"

},
"require-dev": {
    "barryvdh/laravel-debugbar": "^3.2",
    "beyondcode/laravel-dump-server": "^1.0",
    "filp/whoops": "^2.0",
    "krlove/eloquent-model-generator": "^2.0",
    "laracademy/generators": "^3.5",
    "mockery/mockery": "^1.0",
    "nunomaduro/collision": "^7.0",
    "phpunit/phpunit": "^10.1"
},
"config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true,
    "allow-plugins": {
        "composer/package-versions-deprecated": true
    }
},
"autoload": {
    "files": [
        "app/Helpers/helpers.php"
    ],
    "psr-4": {
        "App\": "app/"
    },
    "classmap": [
        "database/seeds",
        "database/factories",
        "services",
        "app/Modules/"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Tests\": "tests/"
    }
},
"bin": [
    "cghooks"
],
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
    "post-autoload-dump": [
        "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ],
    "post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ],
    "check-style": "php php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --dry-run --allow-risky=yes --show-progress=estimating",
    "fix-style": "php php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --allow-risky=yes --show-progress=estimating",
    "list-style-issues": "php php-cs-fixer list-files --config=.php_cs.dist.php ",
    "test": "vendor/bin/phpunit"
},
"scripts-descriptions": {
    "test": "Run all tests.",
    "check-style": "Run style checks (only dry run - no fixing!).",
    "fix-style": "Run style checks and fix violations.",
    "list-style-issues": "Run list all files which need fixing."
}

}

abhishekkumar's avatar

getting same issue my composer.json file { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.1.0", "ext-json": "", "ext-spltype": "", "aws/aws-sdk-php": "^3.212.1", "docusign/esign-client": "^6.0", "google/apiclient": "^2.12", "google/apiclient-services": "^0.238.0", "guzzlehttp/guzzle": "^7.2", "lanin/laravel-api-debugger": "^4.0", "laravel/framework": "^10.10", "laravel/horizon": "^5.0", "laravel/slack-notification-channel": "^2.0", "laravel/tinker": "^2.8", "laravel/ui": "^4.2", "league/flysystem-aws-s3-v3": "^3.0", "lesstif/php-jira-rest-client": "^2.5", "mailjet/mailjet-apiv3-php": "^1.5", "orangehill/iseed": "^3.0.2", "php-open-source-saver/jwt-auth": "^1.4", "predis/predis": "^1.1", "resque/php-resque": "^1.3", "shivella/laravel-bitly": "^1.1", "soundasleep/html2text": "^2.0.0", "spatie/laravel-ignition": "^2.0", "spatie/laravel-permission": "^5.5", "symfony/console": "^6.0", "twilio/sdk": "^6.9.2", "stripe/stripe-php": "^9.0", "watson/rememberable": "^6.0" }, "replace":{ "illuminate/support": "^6|^7|^8.67|^9"

},
"require-dev": {
    "barryvdh/laravel-debugbar": "^3.2",
    "beyondcode/laravel-dump-server": "^1.0",
    "filp/whoops": "^2.0",
    "krlove/eloquent-model-generator": "^2.0",
    "laracademy/generators": "^3.5",
    "mockery/mockery": "^1.0",
    "nunomaduro/collision": "^7.0",
    "phpunit/phpunit": "^10.1"
},
"config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true,
    "allow-plugins": {
        "composer/package-versions-deprecated": true
    }
},
"autoload": {
    "files": [
        "app/Helpers/helpers.php"
    ],
    "psr-4": {
        "App\": "app/"
    },
    "classmap": [
        "database/seeds",
        "database/factories",
        "services"
       
    ]
},
"autoload-dev": {
    "psr-4": {
        "Tests\": "tests/"
    }
},
"bin": [
    "cghooks"
],
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
    "post-autoload-dump": [
        "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ],
    "post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ],
    "check-style": "php php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --dry-run --allow-risky=yes --show-progress=estimating",
    "fix-style": "php php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --allow-risky=yes --show-progress=estimating",
    "list-style-issues": "php php-cs-fixer list-files --config=.php_cs.dist.php ",
    "test": "vendor/bin/phpunit"
},
"scripts-descriptions": {
    "test": "Run all tests.",
    "check-style": "Run style checks (only dry run - no fixing!).",
    "fix-style": "Run style checks and fix violations.",
    "list-style-issues": "Run list all files which need fixing."
}

}

Please or to participate in this conversation.