/**
  * Update the specified TaxBill in storage.
  * PUT/PATCH /taxBills/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var TaxBill $taxBill */
     $taxBill = $this->taxBillRepository->apiFindOrFail($id);
     $result = $this->taxBillRepository->updateRich($input, $id);
     $taxBill = $taxBill->fresh();
     return $this->sendResponse($taxBill->toArray(), "TaxBill updated successfully");
 }
 /**
  * Update the specified TaxBill in storage.
  *
  * @param  int              $id
  * @param UpdateTaxBillRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateTaxBillRequest $request)
 {
     $taxBill = $this->taxBillRepository->find($id);
     if (empty($taxBill)) {
         Flash::error('TaxBill not found');
         return redirect(route('taxBills.index'));
     }
     $this->taxBillRepository->updateRich($request->all(), $id);
     Flash::success('TaxBill updated successfully.');
     return redirect(route('taxBills.index'));
 }