Repreduce:
In file config/app.php
I changed following code
'debug' => true,
After run php artisan config:cache
command, I executed dd(Config::get('app.debug'))
Expected:
Get true
Actual:
Get false
You should to know when I changed other config, I got that except debug
3
Answers
Have you added
at top of file.
There is another way to check this, that is
make sure there’re no duplicate keys for
debug
Make sure your
APP_ENV
isdevelopment
ortesting
in.env
file and run again following the commandphp artisan config:cache
Like: