public function selectById(Request $request){ $id = $request->get("id"); $result = Test::find($id)->toArray(); // 查询满足条件的一批数据 $result1 = Test::where("id",">","11806943")->where("name","like","%"."马"."%")->get(); // 查询满足条件的第一条数据 $result1 = Test::where("id",">","11806943")->where("name","like","%"."马"."%")->first(); foreach ($result1 as $key1 => $value1){ echo $value1; } }