marajul
marajul

Reputation: 85

Disable laravel debugbar

I put this line on my .env file on my laravel application

DEBUGBAR_ENABLED=false
APP_DEBUG=false

But the app debug bar is still showing on the frontend? How can I remove this?

enter image description here

Upvotes: 2

Views: 2305

Answers (2)

P. K. Tharindu
P. K. Tharindu

Reputation: 2730

Your configurations are probably cached. Otherwise, setting APP_DEBUG=false should have been enough.

Try clearing the config cache with:

php artisan config:clear

Upvotes: 0

Jesus Erwin Suarez
Jesus Erwin Suarez

Reputation: 1585

Just try this

Navigate to app/Providers/AppServiceProvider.php Put this code \Debugbar::disable();

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        \Debugbar::disable(); 
    }
}

Upvotes: 3

Related Questions