[5.0] Support : ensure env() helper is insensitive

Related to https://github.com/laravel/framework/pull/6664