Laravel où la colonne JSON Array
->whereJsonContains('user_id', 3)
Mahdi Amirimatin
->whereJsonContains('user_id', 3)
whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();
$listOfUser = [1, 3, 5, 6, 8, 9];
$users = DB::table('users')
->whereIn('user_id', $listOfUser)
->get();