Try
php artisan config:clear
I am having a bit weird problem - been working on a Laravel 5.2 project for some time now and today I wanted to change environment and debug to production and false (it has been set to local and true), so these are my files
.env:
APP_ENV=production
APP_DEBUG=false
app.php
'env' => env('APP_ENV', 'production'),
'debug' => env('APP_DEBUG', false),
But when I run:
php artisan env
it returns:
Current application environment: local
When I dump:
dd(App::environment())
it returns:
"local"
Also when I dump:
var_dump(getenv('APP_ENV')); returns:
it returns:
bool(false)
And also even tho the debug is set to false it is still showing full debug "error page".
if it were me, I'd probably backup then delete my vendor folder and composer install just to make sure nothing was broke in my autoloading.
Please or to participate in this conversation.