I setup a Laravel 5 project using Forge tonight. I set multiple environment variables in Forge but when I SSH into the application $_ENV comes back empty. Any ideas?
I wanted to provide you all an update. Forge does not currently map the environment variables to the new environment file format (.env, not .env.php like before). You'll need to manually create/upload your .env file for the time being.
I ran into this issue today. I tried everything I could think of, but the result was always the same. Laravel wasn't reading the variables. Interestingly enough, I was able to echo variables in Blade. {{ env('DB_HOST') }} would give the value of the environment variable set in the admin in Forge. It's just that those settings were not working in the database.php file, even though were set correct. I could even look at the Nginx config in Forge and they were being set. Something is messed up in L5.