Laravel-debugbar: remove debugbar

Created on 11 Jun 2016  路  17Comments  路  Source: barryvdh/laravel-debugbar

how can i remove it completely????
Debugbar::disable(); not working in laravel 5.2

stale

Most helpful comment

Once you've generated the debugbar.php config file (using vendor:publish in @santigarcor's answer) you can just add a:

DEBUGBAR_ENABLED=false or
DEBUGBAR_ENABLED=true (default)

entry to your .env file.

All 17 comments

@greatamir
'enabled' => null, in config/debugbar.php

I have the same problem in laravel 5.2. In config folder, there is no debugbar.php.
In config/app.php, I set
'debug' => 'false',
but the debugbar always shows at the bottom!!

if you don't have a debugbar.php maybe you should run php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

@ronrun 'debug' => 'false' that's because false is string in your case. :)

Because this one append to body tag. You can config onfig/debugbar.php
'inject' => true to 'inject' => false

Once you've generated the debugbar.php config file (using vendor:publish in @santigarcor's answer) you can just add a:

DEBUGBAR_ENABLED=false or
DEBUGBAR_ENABLED=true (default)

entry to your .env file.

just do APP_DEBUG=false in .env file its works fine

app('debugbar')->disable(); use this on your web.php

this debug bar , is the worth thing that I used on the last days

vdeshan where do you put it into your web.php?

@boulangermario5 You should consider adding Config::set('debugbar.enabled', false); to your routes/web.php file.

Once you change your config file make sure to run php artisan config:cache

debugbar continues injecting JS code before closing body tag despite on:

  • .env: DEBUGBAR_ENABLED=false
  • web.php: Config::set('debugbar.enabled', false);
  • configdebugbar.php: 'inject' => false
  • php artisan config:cache

@dbehterev Did you run php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"?

My gosh this class is the worst experience of my coding life.
I try to get rid of it and it says Class 'BarryvdhDebugbarServiceProvider' not found when accesing a page even if this class is not registered in providers or anywhere in the app.
This is the worst package ever and I still don;t know how to get rit of it!!!

@SebastianBotez you probably have that entry in your $providers array in config/app.php. Just remove it.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knvpk picture knvpk  路  5Comments

thomthom picture thomthom  路  5Comments

coderdiaz picture coderdiaz  路  4Comments

beneverard picture beneverard  路  6Comments

lucasdcrk picture lucasdcrk  路  3Comments