Static Local and Dynamic Production Environments
I like to dev locally and normally use the external environment file to determine the config settings to pull. It works great and is less issue prone than the detectEnvironment() for me. I assume it is a bit faster too - because of less logic and I am very worried about performance of this monster project I am working on - but that another topic.
However, I plan to deploy the same code on all servers. Some will answer to www.domain.com, some to api.domain.com and some to cron.domain.com. I'd like for it to pull its config based on the domain used to access it when on the servers but if possible I'd like for it to use the external file if it is present. I am thinking of some kind of failover type thing, but not sure about how to make that work with current array definition stuff in detectEnvironment().
Some things I still struggle with on the advanced php / architecture sides with Laravel. Sorry if this is super simple - I could be over thinking it.
Please or to participate in this conversation.