Laravel 5 - env() always returns null
-
来源:https://stackoverflow.com/questions/43243732/laravel-5-env-always-returns-null
env file:APP_ENV=production APP_KEY=base64:mymagickey= APP_DEBUG=false APP_LOG_LEVEL=info APP_URL=http://www.example.comget env
print(env('APP_LOG_LEVEL')) null解决方案(项目目录下执行):
php artisan config:clear