getEnvironment() to getFactory()

https://github.com/laravel/framework/commit/cae6f0afce3bc4d2825de62eb5909c124605f022