标签: laravel-5
Laravel如何更新表中的多个id值
print_r($test); exit(); Array ( [0] => 185 [1] => 216 ) $report = Test::find($test); $report->status = "A"; $report->save();
答案 0 :(得分:3)
Test::whereIn('id', $test)->update(['status' => "A"]);