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

himanshuthakur619's avatar

Upgrade Laravel 5.6 to 10 faceing error

my composer { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": "^8.1.13", "anhskohbo/no-captcha": "^3.0", "barryvdh/laravel-debugbar": "v3.13.3", "cakephp/chronos": "^1.2", "consoletvs/charts": "6.", "doctrine/dbal": "2.", "fideloper/proxy": "^4.0", "fobia/laravel-sphinx": "", "google/apiclient": "^2.7", "guzzlehttp/guzzle": "^7.0", "intervention/image": "^2.4", "jrean/laravel-user-verification": "^11.0.0", "laracasts/flash": "", "laravel/framework": "10.0.0", "laravel/socialite": "^5.0", "laravel/tinker": "2.8.2", "league/flysystem-aws-s3-v3": "^1.0", "maatwebsite/excel": "^3.1", "orangehill/iseed": "^2.2", "paypal/rest-api-sdk-php": "", "spatie/async": "^1.4", "spatie/laravel-newsletter": "^4.2", "spatie/laravel-sitemap": "7.0.0", "stripe/stripe-php": "", "yajra/laravel-datatables": "^1.1" }, "require-dev": { "filp/whoops": "^2.0", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^6.0", "kitloong/laravel-migrations-generator": "7.0.1", "phpunit/phpunit": "^9.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\": "app/" }, "files": ["app/CommonFunction.php"] }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "extra": { "laravel": { "dont-discover": [ ] } }, "scripts": { "post-root-package-install": [ "@php -r "file_exists('.env') || copy('.env.example', '.env');"" ], "post-create-project-cmd": [ "@php artisan key:generate" ], "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "minimum-stability": "dev", "prefer-stable": true }

my Error in composer update

Problem 1 - illuminate/support[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.13) does not satisfy that requirement. - Root composer.json requires laravel/framework 10.0.0 -> satisfiable by laravel/framework[v10.0.0]. - kitloong/laravel-migrations-generator v7.0.1 requires illuminate/support ^10.43|^11.0 -> satisfiable by illuminate/support[v10.43.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev]. - Only one of these can be installed: illuminate/support[dev-master, v1.0.0, v1.1.0, v1.1.1, v1.1.2, v4.0.0-BETA2, ..., 4.2.x-dev, v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev, 12.x-dev], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/support and thus cannot coexist with it. - Root composer.json requires kitloong/laravel-migrations-generator 7.0.1 -> satisfiable by kitloong/laravel-migrations-generator[v7.0.1].

0 likes
7 replies
Sergiu17's avatar

Problem 1 - illuminate/support[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.13) does not satisfy that requirement.

Quite clear, update your PHP Version

himanshuthakur619's avatar

@Sergiu17 now it is showing

Problem 1 - Root composer.json requires laravel/framework 10.0 -> satisfiable by laravel/framework[v10.0.0]. - kitloong/laravel-migrations-generator[v7.0.1, ..., 7.x-dev] require illuminate/support ^10.43|^11.0 -> satisfiable by illuminate/support[v10.43.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev]. - Only one of these can be installed: illuminate/support[dev-master, v1.0.0, v1.1.0, v1.1.1, v1.1.2, v4.0.0-BETA2, ..., 4.2.x-dev, v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev, 12.x-dev], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/support and thus cannot coexist with it. - Root composer.json requires kitloong/laravel-migrations-generator ^7.0.1 -> satisfiable by kitloong/laravel-migrations-generator[v7.0.1, 7.x-dev].

himanshuthakur619's avatar

when i change to "kitloong/laravel-migrations-generator": "^6.0.1",

it will show below error Problem 1 - illuminate/contracts[v5.6.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.2.0) does not satisfy that requirement. - 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. - fideloper/proxy[4.4.1, ..., 4.4.2] require illuminate/contracts ^5.0|^6.0|^7.0|^8.0|^9.0 -> satisfiable by illuminate/contracts[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev]. - fideloper/proxy[4.3.0, ..., 4.4.0] require illuminate/contracts ^5.0|^6.0|^7.0|^8.0 -> satisfiable by illuminate/contracts[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev]. - fideloper/proxy[4.2.1, ..., 4.2.2] require illuminate/contracts ^5.0|^6.0|^7.0 -> satisfiable by illuminate/contracts[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev]. - fideloper/proxy 4.2.0 requires illuminate/contracts ~5.0|~6.0 -> satisfiable by illuminate/contracts[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev]. - fideloper/proxy[4.0.0, ..., 4.1.0] require illuminate/contracts ~5.0 -> satisfiable by illuminate/contracts[v5.0.0, ..., 5.8.x-dev]. - Only one of these can be installed: illuminate/contracts[dev-master, v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev], 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]. - Root composer.json requires fideloper/proxy ^4.0 -> satisfiable by fideloper/proxy[4.0.0, ..., 4.4.2].

tykus's avatar

@himanshuthakur619 you are making a massive jump between Laravel versions and potentially multiple dependencies are going to be outdated/abandoned. I would recommend starting with a new (blank) Laravel 11 application and copy across application code slowly so you can install up to date dependencies or replacements as needed. In the long run, I believe this approach would be more successful for you

himanshuthakur619's avatar

@tykus Problem 1 - pestphp/pest[v2.33.6, ..., v2.34.0] require phpunit/phpunit ^10.5.10 -> found phpunit/phpunit[10.5.10, ..., 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest v2.34.1 requires phpunit/phpunit ^10.5.11 -> found phpunit/phpunit[10.5.11, ..., 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest v2.34.2 requires phpunit/phpunit ^10.5.12 -> found phpunit/phpunit[10.5.12, ..., 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest[v2.34.3, ..., v2.34.4] require phpunit/phpunit ^10.5.13 -> found phpunit/phpunit[10.5.13, ..., 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest v2.34.5 requires phpunit/phpunit ^10.5.15 -> found phpunit/phpunit[10.5.15, 10.5.16, 10.5.17, 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest v2.34.6 requires phpunit/phpunit ^10.5.16 -> found phpunit/phpunit[10.5.16, 10.5.17, 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - pestphp/pest[v2.34.7, ..., 2.x-dev] require phpunit/phpunit ^10.5.17 -> found phpunit/phpunit[10.5.17, 10.5.x-dev] but it conflicts with your root composer.json require (^11.0.1). - yajra/laravel-datatables[v11.0.0, ..., 11.x-dev] require yajra/laravel-datatables-export ^11 -> satisfiable by yajra/laravel-datatables-export[v11.0.0, 11.x-dev]. - yajra/laravel-datatables-export[v11.0.0, ..., 11.x-dev] require pestphp/pest ^2.34 -> satisfiable by pestphp/pest[v2.34.0, ..., 2.x-dev]. - Root composer.json requires yajra/laravel-datatables ^11.0 -> satisfiable by yajra/laravel-datatables[v11.0.0, 11.x-dev].

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

how to install "yajra/laravel-datatables": "^11.0", in this laravel version 11

JussiMannisto's avatar

Support for Laravel 5.6 ended 5 years ago. A lot of breaking changes have been made. You can't change a couple of composer requirements and expect your app to work.

You have two options. Either upgrade the app version by version using the upgrade guide, starting from 5.7. You'll learn what has changed that way. But it's easier to do what @tykus is suggesting: do a fresh Laravel install and move your code piece by piece, fixing any bugs that you encounter.

You could also try Laravel Shift to automate the upgrades, but I've never used it myself.

Please or to participate in this conversation.