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);
    }