I'm having laravel 5.1 run on Nginx local server on CentOS 6.7. Is it possible to pass environment variables set in /etc/environment directly to laravel? I tried but it does not work.
However, if I include the line "fastcgi_param LARAVEL_ENV local;" in my nginx configuration, it works by using getenv('varName') in laravel. This is passed as server environment variable, which is not what I want.
Is it possible to get the environment variable directly from Linux using getenv(), without using fastcgi_param in Nginx?