Skip to content

Commit 5aebf54

Browse files
authored
Correction for unique method in eloquent collections (laravel#9570)
1 parent 5208fb2 commit 5aebf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The `toQuery` method returns an Eloquent query builder instance containing a `wh
225225
<a name="method-unique"></a>
226226
#### `unique($key = null, $strict = false)` {.collection-method}
227227

228-
The `unique` method returns all of the unique models in the collection. Any models of the same type with the same primary key as another model in the collection are removed:
228+
The `unique` method returns all of the unique models in the collection. Any models with the same primary key as another model in the collection are removed:
229229

230230
$users = $users->unique();
231231

0 commit comments

Comments
 (0)