Environments flatten their values to a single level array.
Your expanded array is equivalent to this:
return array(
'Foo' => array(
0 => 'a',
1 => 'b',
2 => 'c',
),
);
which when flattened returns the results you show where nested keys are dot-appended to the root key. In your array the keys are implicit / numeric so the 0, 1, 2 etc. are added to the Foo key, separated by a period.
A better way to approach this might be to store an environment specific config file and read the actual array value from that - which won't be flattened unless you force it to be so.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community