Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The application should not have env() or $_ENV calls at all, except for configs.
After caching configs (artisan config:cache) env() will always return an empty result.
This is done in order not to read the .env file each time the application starts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question