Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kay899's avatar

Forge: new subdirectory not accessible

Hi,

I added a subdirectory called "models" under /config, where I store models configurations.

Locally all is working perfectly with reading config with Config::get('models/'.$model.'.properties');

But on my server (Digital Ocean via Forge), the config files could not be readed.

I'll get an error: Invalid argument supplied for foreach() $properties = Config::get('models/'.$model.'.properties'); // set form options for each property to view variables foreach ($properties as $property)

I think the new directory could not be read by server.

What can I do?

Thanks for your help

ahammen

0 likes
1 reply
kay899's avatar

Solved it. Server is case sensitive :-)

Please or to participate in this conversation.