Laravel is pretty clear on how to set up environment specific config.
It also has a method for creating package configuration
What I have not been able to find is an example of creating environment specific package configuration. Is there a way to do this?
If your production app package config is here:
/app/config/packages/{name}/{package}/config.php
Then you just add an environment specific subfolder(s), same as you do for other configs:
/app/config/packages/{name}/{package}/local/config.php
/app/config/packages/{name}/{package}/testing/config.php
And just overwrite any production values with the specific environment variables you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With