Understand environment variable precedence
masterWhen loading configuration, multiple sources can provide values. The parser keeps the first value it encounters for each key. The order of precedence (from highest to lowest) is:
mergeWith(Programmatic key-value pairs)overrideWithFiles/overrideWith(Additional files or strings)- Base file / string (The primary
fileNameorenvString)
Note: mergeWith values cannot be overridden by .env files. If you need the .env file to take precedence over programmatic values, use override files instead of mergeWith.