public function patch($uuid, Request $request)
    {
        $model = static::$model::findOrFail($uuid);

        $this->authorizeUserAction('update', $model);

        $this->restfulService->validateResourceUpdate($model, $request->input());

        $this->restfulService->patch($model, $request->input());

        if ($this->shouldTransform()) {
            $response = $this->response->item($model, $this->getTransformer());
        } else {
            $response = $model;
        }

        return $response;
    }
public function patch($uuid, Request $request)
    {
        $model = static::$model::findOrFail($uuid);

        $this->authorizeUserAction('update', $model);

        $this->restfulService->validateResourceUpdate($model, $request->input());

        $this->restfulService->patch($model, $request->input());

        if ($this->shouldTransform()) {
            $response = $this->response->item($model, $this->getTransformer());
        } else {
            $response = $model;
        }

        return $response;
    }
public function patch ( $ uuid , Request $ request ) { $ model = static :: $ model :: findOrFail ( $ uuid ) ; $ this -> authorizeUserAction ( 'update' , $ model ) ; $ this -> restfulService -> validateResourceUpdate ( $ model , $ request -> input ( ) ) ; $ this -> restfulService -> patch ( $ model , $ request -> input ( ) ) ; if ( $ this -> shouldTransform ( ) ) { $ response = $ this -> response -> item ( $ model , $ this -> getTransformer ( ) ) ; } else { $ response = $ model ; } return $ response ; }
Request to update the specified resource

@param string $uuid UUID of the resource
@param Request $request
@return \Dingo\Api\Http\Response
@throws HttpException
Request to update the specified resource