Service refactor to improve organization

This commit is contained in:
Dane Everitt 2017-07-08 15:04:59 -05:00
parent 761d34f178
commit 2588c25b0b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
12 changed files with 79 additions and 42 deletions
app/Contracts/Repository

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.
*