Laravel 条件数组 in 的用法
$where['status'] = 1; $ids = [1,2]; $where[] = [function($query) use ($ids){ $query->whereIn('id', $ids); }]; $list = User::where($where) ->get();
$where['status'] = 1; $ids = [1,2]; $where[] = [function($query) use ($ids){ $query->whereIn('id', $ids); }]; $list = User::where($where) ->get();