/** * Remove the specified Category from storage. * DELETE /categories/{id} * * @param int $id * * @return Response */ public function destroy($id) { $this->categoryRepository->apiDeleteOrFail($id); return $this->sendResponse($id, "Category deleted successfully"); }
/** * Remove the specified Category from storage. * DELETE /categories/{id} * * @param int $id * * @return Response */ public function destroy($id) { $this->categoryRepository->apiDeleteOrFail($id); header("Access-Control-Allow-Origin:" . $this->clientURL); return $this->sendResponse($id, "Category deleted successfully"); }