Environment to Factory, Laravel 4.2 fix