Manually maintaining the list of config variables that need to be overridden in variables-config is cumbersome and a headache for larger projects. Would there be a way to inject the environment variables before the config is set? Maybe using a command to pull and set the variables in the environment before running php artisan config:cache? So you could do something like this:
Manually maintaining the list of config variables that need to be overridden in
variables-config
is cumbersome and a headache for larger projects. Would there be a way to inject the environment variables before the config is set? Maybe using a command to pull and set the variables in the environment before runningphp artisan config:cache
? So you could do something like this: