コード例 #1
0
 /**
  * Update the specified PointPrice in storage.
  * PUT/PATCH /pointPrices/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var PointPrice $pointPrice */
     $pointPrice = $this->pointPriceRepository->apiFindOrFail($id);
     $result = $this->pointPriceRepository->updateRich($input, $id);
     $pointPrice = $pointPrice->fresh();
     return $this->sendResponse($pointPrice->toArray(), "PointPrice updated successfully");
 }