Пример #1
0
 public function postDelete(Request $request)
 {
     $sector = Sector::findOrFail($request->input("_id"));
     $sector->delete();
     return redirect("sector")->with('success', 'delete');
 }
Пример #2
0
 public function delete($id)
 {
     $sector = Sector::findOrFail($id);
     return view('sysadmin.sectors.delete', compact('sector'));
 }