diff --git a/src/Uniqueway/Repositories/Contracts/RepositoryInterface.php b/src/Uniqueway/Repositories/Contracts/RepositoryInterface.php index dc5b46c..bc60bd3 100644 --- a/src/Uniqueway/Repositories/Contracts/RepositoryInterface.php +++ b/src/Uniqueway/Repositories/Contracts/RepositoryInterface.php @@ -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 diff --git a/src/Uniqueway/Repositories/Eloquent/Repository.php b/src/Uniqueway/Repositories/Eloquent/Repository.php index 8e94307..25f17c6 100644 --- a/src/Uniqueway/Repositories/Eloquent/Repository.php +++ b/src/Uniqueway/Repositories/Eloquent/Repository.php @@ -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();