Don't use environment variables outside of config files. But why?
You have probably heard this before, that you should not use env() to retrieve environment variable values outside of your Laravel configs folder. But why? Understanding the why, is always helpful and allows you to make better decisions as an engineer. Let's analyse that!
What's the