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