Skip to content

Commit

Permalink
Update selecting-fields.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chengkangzai authored Sep 16, 2024
1 parent 8c9d597 commit ee31e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/selecting-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Sometimes you'll want to fetch only a couple fields to reduce the overall size o

The following example fetches only the users' `id` and `name`:

```
GET /users?fields[users]=id,name
```php
// GET /users?fields[users]=id,name

$users = QueryBuilder::for(User::class)
->allowedFields(['id', 'name'])
Expand Down

0 comments on commit ee31e0c

Please sign in to comment.