how to delete multiple records in sql in laravel code example
Example: How to Delete Multiple Records using Checkbox in Laravel
public function deleteAll(Request $request)
{
$ids = $request->ids;
DB::table("products")->whereIn('id',explode(",",$ids))->delete();
return response()->json(['success'=>"Products Deleted successfully."]);
}
//@sujay