/**
  * Remove the specified SubResourceDetail from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $subResourceDetail = $this->subResourceDetailRepository->find($id);
     if (empty($subResourceDetail)) {
         Flash::error('SubResourceDetail not found');
         return redirect(route('subResourceDetails.index'));
     }
     $this->subResourceDetailRepository->delete($id);
     Flash::success('SubResourceDetail deleted successfully.');
     return redirect(route('subResourceDetails.index'));
 }
 /**
  * Remove the specified SubResourceDetail from storage.
  * DELETE /subResourceDetails/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->subResourceDetailRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "SubResourceDetail deleted successfully");
 }