/** * Update the specified ElementPropertyHistory in storage. * PUT/PATCH /elementPropertyHistories/{id} * * @param int $id * @param Request $request * * @return Response */ public function update($id, Request $request) { $input = $request->all(); /** @var ElementPropertyHistory $elementPropertyHistory */ $elementPropertyHistory = $this->elementPropertyHistoryRepository->apiFindOrFail($id); $result = $this->elementPropertyHistoryRepository->update($input, $id); $elementPropertyHistory = $elementPropertyHistory->fresh(); return $this->sendResponse($elementPropertyHistory->toArray(), "ElementPropertyHistory updated successfully"); }