In my application I'm going to define a config file having string that depends on other string that I would like to put in parameters. I explain better by an example
/config/specs.php contents
$var1 = 'blah01';
$var2 = 'blah02';
return [
'specs01' => "This is $var1",
'specs02' => "This is $var2"
...
]
this is what I've found so far... and actually looks like working.
But I'm not convinced too much by this approach: am I putting some dirt in Larevel's global scope?
I know there's the chance to address to env file using env('var01') function to have parameters inside my config array. But also I don't like to have too many key,value pairs in .env file...
What do you suggest?
And am I going to encounter problems with the global scope of the framework? (this is something I'm still investigating...)
Many thanks