laravel-debugbar: Debugbar Not Showing

Issue Type

  • Bug Report

End User Info

– Laravel Version: 5.6.38

– PHP Version: 7.2.10

– Database Driver & Version: MariaDB 10.3.8

– Web Server Driver & Version: NGINX 1.15.0

– OS Driver and Version: Ubuntu 18.04.1

Issue:

  • Installed using composer require barryvdh/laravel-debugbar
  • Published config using php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
  • Set .env APP_ENV=local APP_DEBUG=true
  • Set debugbar.php config enabled to true
  • Ran php artisan clear:all Clearing several common cache’s … Blade templates cached successfully! Route cache cleared! Routes cached successfully! Configuration cache cleared!
  • Cleared OPCache php artisan opcache:clear Opcode cache cleared

I don’t see debug bar in bottom of browser…

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 8
  • Comments: 29

Most upvoted comments

Was having the same issue… Worked great after I cleared the rout cache…

php artisan route:cache

Hope it helps 👍

Tried all of the above, didn’t budge, but creating the /storage/debugbar folder (and setting the owner to www-data in my case) caused the bar to show up.

+1 not showing in Laravel 5.7 here. APP_DEBUG is true, enabled is true. I even checked on tinker config('debugbar') and enabled is true there. The Service Provider is loaded as I see the debugbar console command on artisan. Just don’t understand what the issue is here?

Was having the same issue… Worked great after I cleared the rout cache…

php artisan route:cache

This worked for me.

affter sudo chmod -R 777 storage

i have the same issue i have tried all solutions and nothing change when i have changed in config/debugbar.php ‘enabled’ => true, it’s work image

Posting here in case others have made the same mistake as me…

Silly of me, but when deploying to a remote dev environment I was using composer install --optimize-autoloader --no-dev Obviously the --no-dev flag was stopping debugbar from being installed.

Im using docker with Laravel v8.36.2 PHP v7.4.16 ( Other system infos are same with the author ). Debugbar does not show in my case. I tried:

  1. composer require barryvdh/laravel-debugbar --dev
  2. config/app.php:
  • Add Barryvdh\Debugbar\ServiceProvider::class to providers option
  • Add ‘Debugbar’ => Barryvdh\Debugbar\Facade::class to aliases option
  1. Check env:
  • APP_DEBUG=true
  • APP_ENV=local
  • Add: DEBUGBAR_ENABLED=true
  1. Run: php artisan vendor:publish --provider=“Barryvdh\Debugbar\ServiceProvider”
  2. Run: php artisan route:cache
  3. Run: php artisan config:cache
  4. Run: php artisan debugbar:clear
  5. Check folder permission ( storage ): owned by www-data user and permission 777
  6. My Nginx config: location / { try_files $uri $uri/ /index.php?$args; } location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass app:9000; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; sendfile off; } I also tried to change the config as @LisichkinVlad and @masterwto but nothing changed. It seems that I tried all ways I found in google. Can anyone help me?

Have you been able to solve your problem? I am in a similar predicament. Using my laravel backend and Vuejs frontend in separate pods, the debugbar is not showing.

I have tried al of the above.

Sorry I haven’t fixed this issue. I think its better if you create a new ticket for this issue

I have the same issue as in not showing, My setup is backend and frontend, might have to do with some namespacing However when I set in my frontend/config/app.php

Manually to the top somewhere like this, then it does show up Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Auth\AuthServiceProvider::class, Barryvdh\Debugbar\ServiceProvider::class, Anyone ideas why it is not showing up with the autoloaders?