n8fromnewyork
0
Q:

laravel where json array column

->whereJsonContains('user_id', 3)
0
whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();

0
$listOfUser = [1, 3, 5, 6, 8, 9];

$users = DB::table('users')
                    ->whereIn('user_id', $listOfUser)
                    ->get();

0

New to Communities?

Join the community