Skip to content

Commit

Permalink
Merge pull request #969 from chengkangzai/patch-1
Browse files Browse the repository at this point in the history
Update Documentation for php markdown
  • Loading branch information
Nielsvanpach authored Sep 23, 2024
2 parents 8c9d597 + ee31e0c commit edd9b1c
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 edd9b1c

Please sign in to comment.