public function postDelete(Request $request) { $sector = Sector::findOrFail($request->input("_id")); $sector->delete(); return redirect("sector")->with('success', 'delete'); }
public function delete($id) { $sector = Sector::findOrFail($id); return view('sysadmin.sectors.delete', compact('sector')); }