code: public function update(FilterRequest $request, $id)
      {
          $this->fieldManager = $this->getFieldManager();
          $this->validate($request->request, $this->fieldManager->update());
          
          $id = $this->getRealId($id);
          
          $resource = $this->repository->update($request->all(), $id);
          
          if (! $resource) {
              // return $this->notFound();
          }
          
          return $this->success($resource);
      }
docs: Update and display the resource.
  
  @return \Illuminate\Http\Response