Answer the question
In order to leave comments, you need to log in
How to add environment variables to Homestead?
Hi all. The problem is this: I can't get laravel to "see" the environment variable.
I use homestead (vagrant box):
Answer the question
In order to leave comments, you need to log in
In general, direct editing of $_ENV helped as a temporary solution.
But the .env worked the next day, strange, I did vagrant reload --provision many times.
The variable must be declared for the user that runs the web server that serves Laravel.
In addition, you should pay attention to what is written in the description of the putenv function (about variable names)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question