laravel where json array column
->whereJsonContains('user_id', 3)
4.17
6
whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();
Thank you!
6
0
4
10
$listOfUser = [1, 3, 5, 6, 8, 9];
$users = DB::table('users')
->whereIn('user_id', $listOfUser)
->get();
Thank you!
10
0
Are there any code examples left?
New code examples in category PHP