Service refactor to improve organization
This commit is contained in:
parent
761d34f178
commit
2588c25b0b
12 changed files with 79 additions and 42 deletions
app/Contracts/Repository
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue