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