Is it possible to load Environment from process variable?


#1

Write now the all the environment variables are getting stored in .env files. Do we have any way it can pick either from .env or process vars?


#2

you can put your variables from .env file into a config file and after that you can access those variables with the config helper like this:

Config.get('app.appSecret')

more info you can find in the docs over here