Skip to content

Update queries.md #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025
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
6 changes: 5 additions & 1 deletion queries.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: bba3e74166b0efc8624a44211fd0b698b6791087
git: 4d2579e3a11ad725724355549d0a3532c66e0424
---

# Построитель запросов
Expand Down Expand Up @@ -662,6 +662,10 @@ Laravel также поддерживает запросы к типам сто
$users = DB::table('users')
->where('preferences->dining->meal', 'salad')
->get();

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

Для запроса массивов JSON можно использовать методы `whereJsonContains` и `whereJsonDoesntContain`:
Expand Down