Skip to content

Commit

Permalink
Merge pull request #3 from boz14676/master
Browse files Browse the repository at this point in the history
Fix params for findBy function.
  • Loading branch information
DevDynamo2024 authored Aug 23, 2019
2 parents a3a5703 + 2a3ad68 commit 3825175
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Uniqueway/Repositories/Contracts/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public function delete(Model $model);
public function find($id, $columns = ['*']);

/**
* @param $field
* @param $attribute
* @param $value
* @param array $columns
* @return mixed
*/
public function findBy($field, $value, $columns = ['*']);
public function findBy($attribute, $value = '', $columns = ['*']);

/**
* @param $field
Expand Down
2 changes: 1 addition & 1 deletion src/Uniqueway/Repositories/Eloquent/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function find($id, $columns = ['*'])
* @param array $columns
* @return mixed
*/
public function findBy($attribute, $value, $columns = ['*'])
public function findBy($attribute, $value = '', $columns = ['*'])
{
$this->applyCriteria();

Expand Down

0 comments on commit 3825175

Please sign in to comment.