0
$data = $request->all();
$data['id_cliente']= $sistemas->id_cliente;
$data['id_sistema']= $sistemas->id_sistema;
$data['id_versao_atual']= $sistemas->id_versao_atual;
$data['id_versao_anterior']= $sistemas->id_versao_anterior;
$data['data_ult_atualizacao']= $sistemas->data_hora_ultima_verificacao;
$data['situacao']= 0;
$request->request->parameters = $data;
only it shows the following error
Exception has occurred. Error: Cannot access protected Property Symfony Component Httpfoundation Parameterbag::$Parameters
managed to receive this parameter in my put function protected Function PUT(Request $request,$endpoint){ $http = new Client(); $Response = $http->put( $endpoint,[$request],[ 'headers' => [ 'Accept' => 'application/json', 'Authorization' => 'Bearer '.$token=$request->Session()->get('token'), 'Content-Type' => 'application/x-www-form-urlencoded', 'Content-Type' => 'application/json' ], ]); $body = $Response->getBody(); }
– guilherme.ramos
Cool, but if possible test this other solution, will it solve your problem more simply.
– Kayo Bruno
you misunderstood me, to be able to solve with your solution, but with another doubt
– guilherme.ramos
to send and $request->() and to receive is $request-> ... what
– guilherme.ramos