Здесь вы можете посмотреть, как сделать json запросов https://laravel.com/docs/5.8/queries#json -where-предложения
Так же, как и другие запросы.
$users = DB::table('users')
->where(function($query){
$query->where('column->id', 2)
->orWhere('column->id', 3)
})
->where('column->name', "Name 2")
->get();
Для неизвестного количества параметров построить запрос, как описано в документации.
$usersQuery = DB::table('users')
->where(function($query){
$query->where('column->id', 2)
->orWhere('column->id', 3)
})
->where('column->name', "Name 2");
foreach(...){
$usersQuery->where('column->name', "Name xxx");
}
$users = $usersQuery->get();