Home > other >  Laravel: "debug" config dose not change
Laravel: "debug" config dose not change

Time:11-24

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

CodePudding user response:

Have you added

use Illuminate\Support\Facades\Config;

at top of file. There is another way to check this, that is

dd(config('app.debug'));

CodePudding user response:

make sure there're no duplicate keys for debug

  • Related