Service refactor to improve organization

This commit is contained in:
Dane Everitt
2017-07-08 15:04:59 -05:00
parent 761d34f178
commit 2588c25b0b
12 changed files with 79 additions and 42 deletions

View File

@@ -108,6 +108,14 @@ interface RepositoryInterface
*/
public function findWhere(array $fields);
/**
* Find and return the first matching instance for the given fields.
*
* @param array $fields
* @return mixed
*/
public function findFirstWhere(array $fields);
/**
* Update a given ID with the passed array of fields.
*