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