Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ Laravel also supports querying JSON column types on databases that provide suppo
$users = DB::table('users')
->where('preferences->dining->meal', 'salad')
->get();

$users = DB::table('users')
->whereIn('preferences->dining->meal', ['pasta', 'salad', 'sandwiches'])
->get();
```

You may use the `whereJsonContains` and `whereJsonDoesntContain` methods to query JSON arrays:
Expand Down