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

bmtamim's avatar

I have faced these issue when trying to upgrade Laravel 8 to 10

Problem 1 - illuminate/database[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.1.6) does not satisfy that requirement. - symfony/console[v5.0.0, ..., v5.0.8] require php ^7.2.5 -> your php version (8.1.6) does not satisfy that requirement. - spatie/laravel-sluggable 2.6.1 requires phpunit/phpunit ^9.5 -> found phpunit/phpunit[9.5.0, ..., 9.6.4] but it conflicts with your root composer.json require (^10.0). - illuminate/database[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.6) does not satisfy that requirement. - spatie/laravel-sluggable 2.6.2 requires illuminate/database ^7.30|^8.0 -> satisfiable by illuminate/database[v7.30.0, ..., v7.30.6, v8.0.0, ..., v8.83.27]. - spatie/laravel-sluggable 2.6.0 requires illuminate/database ^7.0|^8.0 -> satisfiable by illuminate/database[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27]. - illuminate/database[v8.74.0, ..., v8.83.27] require symfony/console ^5.4 -> satisfiable by symfony/console[v5.4.0, ..., v5.4.21]. - illuminate/database[v8.18.1, ..., v8.73.2] require symfony/console ^5.1.4 -> satisfiable by symfony/console[v5.1.4, ..., v5.4.21]. - illuminate/database[v8.12.0, ..., v8.18.0] require symfony/console ^5.1 -> satisfiable by symfony/console[v5.1.0, ..., v5.4.21]. - illuminate/database[v7.29.0, ..., v7.30.6] require symfony/console ^5.0 -> satisfiable by symfony/console[v5.0.0, ..., v5.4.21]. - You can only install one version of a package, so only one of these can be installed: symfony/console[v2.3.10, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.49, v5.0.0, . .., v5.4.21, v6.0.0, ..., v6.2.7]. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.3.16. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.3.14. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.3.10. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.3.2. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.2.14. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.2.11. - symfony/var-dumper[v6.1.0, ..., v6.2.7] conflict with symfony/console v5.0.11. - spatie/laravel-ignition 2.0.0 requires symfony/console ^6.2.3 -> satisfiable by symfony/console[v6.2.3, v6.2.5, v6.2.7]. - spatie/laravel-ignition 2.0.0 requires symfony/var-dumper ^6.2.3 -> satisfiable by symfony/var-dumper[v6.2.3, v6.2.5, v6.2.7]. - Root composer.json requires spatie/laravel-ignition ^2.0 -> satisfiable by spatie/laravel-ignition[2.0.0]. - Root composer.json requires spatie/laravel-sluggable ^2.6 -> satisfiable by spatie/laravel-sluggable[2.6.0, 2.6.1, 2.6.2].

0 likes
2 replies
LaryAI's avatar
Level 58

It looks like you are running into some compatibility issues between the packages you are trying to install and the version of PHP you are running. The first step would be to make sure you are running the latest version of PHP (8.1.6 in this case).

Once you have the latest version of PHP installed, you can try running composer update to see if that resolves the issue. If not, you may need to manually update the packages that are causing the conflicts. You can do this by running the following command:

composer update illuminate/database symfony/console symfony/var-dumper spatie/laravel-ignition spatie/laravel-sluggable

This should update the packages to the latest compatible versions. If you are still having issues, you may need to manually specify the versions of the packages you want to install. You can do this by running the following command:

composer require illuminate/database:7.30.6 symfony/console:5.4.21 symfony/var-dumper:6.2.7 spatie/laravel-ignition:2.0.0 spatie/laravel-sluggable:2.6.2

This should install the specified versions of the packages and should resolve the compatibility issues.

1 like
EricZwart's avatar

Try using the upgrade guide on laravel: https://laravel.com/docs/9.x/upgrade .But first upgrade to 9 and after that to 10. Change composer.json as suggested. And read the responses after And search newer versions for your dependencies.

1 like

Please or to participate in this conversation.