Laravel 5.2 {{ env('APP_ENV') }} does not work in production
问题 The following code works on my development environment (Ubuntu 14.04 desktop) @if(env('APP_ENV') === 'production') // ... something But for some reason, the blade views on production (ubuntu 14.04 server) aren't getting the env variables. If I run php artisan env the response is just fine: Current application environment: production The database connection works fine. And the env() helper called from the controllers, also works. What I tried so far: php artisan clear:cache php artisan config