What laravel version. If 6 or above you can try changing require php to:
"php": "^7.3|^8.0",
You may need to check and fix some dependencies.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys im trying to install debugger for laravel when i use the command: composer require barryvdh/laravel-debugbar --dev (of course in my laravel app folder) it shows this
Problem 1 - barryvdh/laravel-debugbar[v3.6.0, ..., v3.6.2] require maximebf/debugbar ^1.16.3 -> satisfiable by maximebf/debugbar[v1.16.3, ..., 1.17.x-dev (alias of dev-master)]. - maximebf/debugbar 1.17.x-dev is an alias of maximebf/debugbar dev-master and thus requires it to be installed too. - maximebf/debugbar[dev-master, v1.16.4, ..., v1.17.1] require psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - maximebf/debugbar v1.16.3 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement. - Root composer.json requires barryvdh/laravel-debugbar ^3.6 -> satisfiable by barryvdh/laravel-debugbar[v3.6.0, v3.6.1, v3.6.2].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
When i use the same command with dependencies i get this:
Problem 1 - Root composer.json requires laravel/framework ^8.54, found laravel/framework[v8.54.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. Problem 2 - laravel/sanctum is locked to version v2.11.2 and an update of this package was not requested. - laravel/sanctum v2.11.2 requires illuminate/database ^6.9|^7.0|^8.0 -> found illuminate/database[v6.10.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. Problem 3 - laravel/tinker is locked to version v2.6.2 and an update of this package was not requested. - laravel/tinker v2.6.2 requires illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. Problem 4 - laravel/sail is locked to version v1.11.0 and an update of this package was not requested. - laravel/sail v1.11.0 requires illuminate/console ^8.0|^9.0 -> found illuminate/console[dev-master, v8.0.0, ..., 8.x-dev, 9.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require.
Please or to participate in this conversation.