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