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: eloquent-relationships.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -725,14 +725,20 @@ public function featuredPosts(): HasMany
725
725
}
726
726
```
727
727
728
-
The `withAttributes` method will add `where`clause constraints to the query using the given attributes, and it will also add the given attributes to any models created via the relationship method:
728
+
The `withAttributes` method will add `where`conditions to the query using the given attributes, and it will also add the given attributes to any models created via the relationship method:
Copy file name to clipboardExpand all lines: eloquent.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1594,14 +1594,22 @@ class Post extends Model
1594
1594
}
1595
1595
```
1596
1596
1597
-
The `withAttributes` method will add `where`clause constraints to the query using the given attributes, and it will also add the given attributes to any models created via the scope:
1597
+
The `withAttributes` method will add `where`conditions to the query using the given attributes, and it will also add the given attributes to any models created via the scope:
0 commit comments