Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 812
Tutu Kaeen Avatar asked Oct 20 '17 12:10

Tutu Kaeen


2 Answers

Go To .env And Set

DEBUGBAR_ENABLED=false

OR

APP_DEBUG=false

like image 144
Ayman Elshehawy Avatar answered Oct 14 '22 09:10

Ayman Elshehawy


Did u try changing it in the .env file?

Look for the value APP_DEBUG in the .env file and set it false.

Out of the box, .env has it set to true.

like image 23
Riyaz Avatar answered Oct 14 '22 09:10

Riyaz