Laravel zdobądź zmienną env
dd(env('APP_NAME'));
popo
dd(env('APP_NAME'));
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}