Я обновил 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 :(
Это странно :(
Кто-нибудь сталкивался с этой проблемой??