📜  laravel where json 数组列 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.945000             🧑  作者: Mango

代码示例3
$listOfUser = [1, 3, 5, 6, 8, 9];

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