laravel-debugbar: Cannot install in a fresh Laravel project [PHP 8.0.11]

PHP Version: 8.0.11 Laravel version: 8.62.0


I can’t seem to install debugbar in a fresh Laravel project. I am getting composer issues:

image


Steps to Reproduce

  1. laravel new testing
  2. cd testing
  3. composer require barryvdh/laravel-debugbar --dev

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 13
  • Comments: 17 (3 by maintainers)

Commits related to this issue

Most upvoted comments

I still get the same error with I try to install it.

I fixed this issue with “laravel/framework”: “8.54” in my composer.json

just remove “^” and run “composer update” or “sail composer update”

When constraining the version of psr/log in your application to ^1.0 the installation is succesful.

composer require psr/log:^1.0

I fixed this issue, I didn’t know its best practice or not but it work for me.

just add this line manually in composer JSON in require-dev

"barryvdh/laravel-debugbar": "^3.6"

and then run composer update/install

@tkuijer Constraining psr/log to ^1.0 works for me, but it downgrades the version installed by default in a fresh Laravel project.

I’m not comfortable doing this because I don’t know if Laravel is using v2.0 features of psr/log or not.