Skip to content

Commit da79f9c

Browse files
committed
Updated README
1 parent 7dc9b4a commit da79f9c

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ all($columns = ['*'])
198198
lists($column, $key = null)
199199
find($id, $columns = ['*'])
200200
first($columns = ['*'])
201-
findByField($field, $value, $columns = ['*'])
201+
findByAttribute($attribute, $value, $columns = ['*'])
202202
findWhere(array $where, $columns = ['*'])
203-
findWhereIn($field, array $values, $columns = ['*'])
204-
findWhereNotIn($field, array $values, $columns = ['*'])
203+
findWhereIn($attribute, array $values, $columns = ['*'])
204+
findWhereNotIn($attribute, array $values, $columns = ['*'])
205205
count()
206206
create(array $attributes)
207207
update(array $attributes, $id)
@@ -215,8 +215,8 @@ has($relation)
215215
with($relations)
216216
whereHas($relation, $closure)
217217
orderBy($column, $direction = 'asc')
218-
visible(array $fields)
219-
hidden(array $fields)
218+
visible(array $attributes)
219+
hidden(array $attributes)
220220
scopeQuery(\Closure $scope)
221221
resetScope()
222222
```

src/Contracts/RepositoryContract.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,22 +217,22 @@ public function whereHas($relation, \Closure $closure);
217217
public function orderBy($attribute, $direction = 'asc');
218218

219219
/**
220-
* Set visible fields.
220+
* Set visible attributes.
221221
*
222-
* @param array $fields
222+
* @param array $attributes
223223
*
224224
* @return $this
225225
*/
226-
public function visible(array $fields);
226+
public function visible(array $attributes);
227227

228228
/**
229-
* Set hidden fields.
229+
* Set hidden attributes.
230230
*
231-
* @param array $fields
231+
* @param array $attributes
232232
*
233233
* @return $this
234234
*/
235-
public function hidden(array $fields);
235+
public function hidden(array $attributes);
236236

237237
/**
238238
* Additional Query Scope.

src/Eloquent/BaseRepository.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -512,29 +512,29 @@ public function orderBy($attribute, $direction = 'asc')
512512
}
513513

514514
/**
515-
* Set visible fields.
515+
* Set visible attributes.
516516
*
517-
* @param array $fields
517+
* @param array $attributes
518518
*
519519
* @return $this
520520
*/
521-
public function visible(array $fields)
521+
public function visible(array $attributes)
522522
{
523-
$this->query->setVisible($fields);
523+
$this->query->setVisible($attributes);
524524

525525
return $this;
526526
}
527527

528528
/**
529-
* Set hidden fields.
529+
* Set hidden attributes.
530530
*
531-
* @param array $fields
531+
* @param array $attributes
532532
*
533533
* @return $this
534534
*/
535-
public function hidden(array $fields)
535+
public function hidden(array $attributes)
536536
{
537-
$this->query->setHidden($fields);
537+
$this->query->setHidden($attributes);
538538

539539
return $this;
540540
}

0 commit comments

Comments
 (0)