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

Inpanic4's avatar

Composer debugbar installation

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.

0 likes
2 replies
jlrdw's avatar

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.

Inpanic4's avatar

@jlrdw { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "php": "^7.3|^8.0", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.54", "laravel/sanctum": "^2.11", "laravel/tinker": "^2.5" }, "require-dev": { "facade/ignition": "^2.5", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^5.10"

},
"autoload": {
    "psr-4": {
        "App\": "app/",
        "Database\Factories\": "database/factories/",
        "Database\Seeders\": "database/seeders/"
    }
},
"autoload-dev": {
    "psr-4": {
        "Tests\": "tests/"
    }
},
"scripts": {
    "post-autoload-dump": [
        "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ],
    "post-update-cmd": [
        "@php artisan vendor:publish --tag=laravel-assets --ansi"
    ],
    "post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ]
},
"extra": {
    "laravel": {
        "dont-discover": []
    }
},
"config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true

}

Please or to participate in this conversation.