使用->column("字段名")获取单个字段的值组成一维数组 $ids= UserModel::whereTime('create_time','>=',date('Y-m-d H:i:s'))->column("id");