You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -486,10 +486,17 @@ Like other relations, embedsMany assumes the local key of the relationship based
486
486
487
487
return $this->embedsMany('Book', 'local_key');
488
488
489
-
Embedded relations will return a Collection of embedded items instead of a query builder. To allow a more query-like behavior, embedded relations will return a modified version of the Collection class with support for the following operations:
489
+
Embedded relations will return a Collection of embedded items instead of a query builder. To allow a more query-like behavior, embedded relations will return a modified version of the Collection class with support for the following **additional**operations:
490
490
491
491
- where($key, $operator, $value)
492
+
- whereIn($key, $values) and whereNotIn($key, $values)
493
+
- whereBetween($key, $values) and whereNotBetween($key, $values)
494
+
- whereNull($key) and whereNotNull($key)
492
495
- orderBy($key, $direction)
496
+
- oldest() and latest()
497
+
- limit($value)
498
+
- offset($value)
499
+
- skip($value)
493
500
494
501
This allows you to execute simple queries on the collection results:
0 commit comments