Have you cached your config? If that is the case you need to clear the cache first!
php artisan cache:clear
After that it should work as expected ;)
Tip: Never ever cache your config locally ;)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This is embarrassing to say the least but somehow i am not able to all values in my config file
return [
'banned_domains' => [
'paypal.com',
'amazon.com'
],
'site_url' => 'http://test.com', //without trailing slash
'ip_address_list' => [],
'caching_enable' => true,
'caching_time' => 1800,
'hotness_no' => 5, // if an item is requested >= hotness_no in caching_time then its worth caching it
'cacheable_content_types' => [
'image/png',
'image/jpeg',
'image/jpg',
'image/webp',
'image/gif',
'text/css'
],
'parse_required_content_types' => [
'text/html',
'text/css'
],
];
If i do the following , i get the array as expected
dd(\Config::get('config.banned_domains'));
However this don't work
dd(\Config::get('config.caching_enable'));
Please or to participate in this conversation.