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