/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (Auth::check() && $this->rolechucnangs && $this->rolechucnangs->Xoa == 1) { $canbo = Canbo::findOrFail($id); $canbo->delete(); return \Redirect::route('danhmucchucvu.index')->with('message', 'Xóa Thành Công!'); } else { return \Redirect::route('danhmucchucvu.index'); } }