Exemplo n.º 1
0
 /**
  * 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");
 }
Exemplo n.º 2
0
 /**
  * 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");
 }