Feb 29, 2016
0
Level 2
Laravel says application is in production, even though it is not.
When I run php artisan env it says my current environment is production even though it is not. I have edited my .env file to APP_ENV=local.
If I run env('APP_ENV') it says LOCAL. But if I var_dump $_ENV the APP_ENV is not present in the array, however all other ENV variables are. However, this behavior is the same for my other project that works fine, so I guess its meant to be hidden from the $_ENV array.
- I have tried clearing all caches (config:clear, cache:clear, route:clear, view:clear).
- I have tried restarting my local machine
Please or to participate in this conversation.