Laravel Delete несколько строк
$org->products()->whereIn('id', $ids)->delete()
macke
$org->products()->whereIn('id', $ids)->delete()
public function deleteAll(Request $request)
{
$ids = $request->ids;
DB::table("products")->whereIn('id',explode(",",$ids))->delete();
return response()->json(['success'=>"Products Deleted successfully."]);
}
//@sujay