Skip to content

Commit 080d923

Browse files
authored
Merge pull request #733 from canvural/patch-1
Fix include casing docs
2 parents 603145f + e22b6ea commit 080d923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/including-relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ You can select only some fields to be included using the [`allowedFields` method
126126

127127
## Include casing
128128

129-
Relation/include names will be converted to camelCase when looking for the corresponding relationship on the model. This means `/users?include=blog-posts` and `/users?include=blogPosts` will both try to load the `blogPosts()` relationship.
129+
Relation/include names will be passed from request URL to the query directly. This means `/users?include=blog-posts` will try to load `blog-posts` relationship and `/users?include=blogPosts` will try to load the `blogPosts()` relationship.
130130

131131
## Eloquent API resources
132132

0 commit comments

Comments
 (0)