Beispiel #1
0
 public function deleteBulk(Request $req, City $CityModel, Country $country)
 {
     if (!$req->has('table_records')) {
         return redirect()->route('cities.index');
     }
     $ids = $req->input('table_records');
     $CityModel->destroy($ids);
     return redirect()->route('cities.index', $country->id)->with('success', trans('lists::cities.delete_bulk_success'));
 }