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