Skip to content

Commit b5012cb

Browse files
authored
Merge pull request #1017 from alexkart/fix-docs-typos
Update documentation in the config
2 parents 6064848 + edd0186 commit b5012cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/query-builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
/*
5454
* By default, the package expects relationship names to be snake case plural when using fields[relationship].
5555
* For example, fetching the id and name for a userOwner relation would look like this:
56-
* GET /users?fields[user_owner]=id,name
56+
* GET /users?include=userOwner&fields[user_owners]=id,name
5757
*
5858
* Set this to `false` if you don't want that and keep the requested relationship names as-is and allows you to
5959
* request the fields using a camelCase relationship name:
60-
* GET /users?fields[userOwner]=id,name
60+
* GET /users?include=userOwner&fields[userOwner]=id,name
6161
*/
6262
'convert_relation_names_to_snake_case_plural' => true,
6363

0 commit comments

Comments
 (0)