input('page', 1); $limit = $request->input('limit', 20); $update_at = $request->input('update_time', ''); $where = [ ['valid','=',1], ['company_audit','=',1], ['audit','=',1], ['display','=',1], ]; if (!empty($update_at)) { $where[] = ['updated_at','>',$update_at]; } $list = Jobs::select('id','jobs_name','company_id','nature','sex','age','amount','topclass','category','subclass','trade','scale','tag','education','experience','wage','wage_max','negotiable','wage_min','wage_str','jobs_content','department','created_at','updated_at') ->where($where) ->page($page) ->limit($limit) ->get() ->toArray(); $ids = array_column($list,'id'); halt($ids); } }