In Laravel 4, you can customize your environment’s configuration folder structure:
/config/app.php
/config/dev/app.php
/config/staging/app.php
/config/testing/app.php
Can you do it with Laravel 5? I understand the concept .env, and I use this to determine which environment I enter. But I need to determine the configuration value, which is an array of arbitrary length, and you cannot do this with files .env.
An example of what I'm trying to achieve:
if (in_array($request->input('value'), config('app.valid_values')) {
}
This valid_valuesis just an array of values. It is of arbitrary length, so you cannot just install them in your .envfile, for example:
VALID_VALUE1=...
VALID_VALUE2=...
etc.
And the array should be different for each environment.
This was easy to do in Laravel 4 with environment configuration folders. But how do you do it with Laravel 5?