We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c9d597 + ee31e0c commit edd9b1cCopy full SHA for edd9b1c
docs/features/selecting-fields.md
@@ -9,8 +9,8 @@ Sometimes you'll want to fetch only a couple fields to reduce the overall size o
9
10
The following example fetches only the users' `id` and `name`:
11
12
-```
13
-GET /users?fields[users]=id,name
+```php
+// GET /users?fields[users]=id,name
14
15
$users = QueryBuilder::for(User::class)
16
->allowedFields(['id', 'name'])
0 commit comments