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