refactor for hatch.es using laravel 5