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