can you please try this way to get config value
Config::get('config_file_a.value');
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
i recently moved my laravel application to a new server (php version are the same). I have a problem (only on the new server) with the config files located under app/config, I have a config file A and a config file B. The config file b is getting a value from config file a. But on the new server they can not access the value from config file A.
Any ideas why this happens? On my old server this works with any problems. I'm using Laravel 5.
I think the config_file_a is loaded after config_file_b can this happen?
Example:
Config File A:
<?php
return array(
'value' => 'abc'
);
Config File B:
return array(
'key' => 'test',
'value' => config('config_file_a.value') // this is not working on the new server
);
Ps.: Sorry for my bad english. I hope you can understand my problem.
Please or to participate in this conversation.