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

kamatchikumar's avatar

barryvdh/laravel-debugbar does not appear in laravel5.6

I install barryvdh/laravel-debugbar as per instruction. but not shown anywhere in my application. I check .env and app.php. How to fix this issue

0 likes
12 replies
bobbybouwmann's avatar

Your APP_ENV needs to be local. For the rest the service provider should work out of the box!

kamatchikumar's avatar

yes, I clear all config, route, cache, view, i didn't find what issue.

bobbybouwmann's avatar

How did you install the package? Do you see the barryvdh/laravel-debugbar directory in the vendor directory?

crnkovic's avatar

Remove and reinstall again. In 5.6, all you need to do is literally composer require barrybdh/laravel-debugbar and it should work out of the box. Check your git log to see if you've changed anything within config or similar.

kamatchikumar's avatar

I install using-> composer require barrybdh/laravel-debugbar

Package Install in this directory - > vendor\barryvdh\laravel-debugbar

shez1983's avatar

there is another env setting that it also looks for (debug=true or not) or something similar (although that is tied to env... as well)

kamatchikumar's avatar

Yes, I checked .env & .env.example both are same. APP_DEBUG=true & APP_ENV=local

kamatchikumar's avatar

"require": { "php": "^7.1.3", "barryvdh/laravel-debugbar": "^3.2", "codecasts/laravel-jwt": "^0.10.0", "fideloper/proxy": "^4.0", "hyn/multi-tenant": "^5.2", "ixudra/curl": "^6.16", "laravel/framework": "5.6.*", "laravel/tinker": "^1.0", "laravelcollective/html": "~5.0", "owen-it/laravel-auditing": "^8.0" },

Cruorzy's avatar

dd(App::environment());

If that echo's local then i'm not sure. maybe a whole fresh vendor folder

Ishatanjeeb's avatar

For your local config run this command on your terminal


php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

Please or to participate in this conversation.