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