我将 laravel 5.1 升级到 5.2,一切看起来都不错。但是当尝试访问应用程序环境时没有得到预期的结果。
When i dd($_ENV) this is what i get
"APP_ENV" => "vagrant"
"APP_DEBUG" => "true"
"DB_HOST" => "localhost"
But When dd(\App::environment());
"production"
P.S. even I checked in tinker: dd(env('APP_ENV')) gives me "vagrant"
but dd(\App::environment()) gives me "production".
Dont you think it is odd :(
这很奇怪:(
有人遇到这个问题吗??