added firstOrFail() method and converted from tabs to spaces