I can't turn off debug bar in Laravel on production

Tutu Kaeen picture Tutu Kaeen · Oct 20, 2017 · Viewed 17.8k times · Source

I have set

'enabled' = false

in both package and in config/debugbar.php

I cleared cache with

php artisan cache:clear

but I still see it on production environment. I accidently commited

'enabled' = false

by accident and can't turn it off. I even rolled back commits, but that doesn't help. Any ideas?

@edit the .env has also debug set to false

@edit2 also when I got ot /login route on new browser (or private mode) I don't see the bar, but when I refresh this page, it is there again

Answer

Yevgeniy Afanasyev picture Yevgeniy Afanasyev · May 17, 2018

It is not a matter of debugbar, it is general problem with .env. You can change your APP_NAME to see that it is not changing anything.

To apply your new config changes including .env changes you need to run artisan command in your project folder:

php artisan config:cache