如何在Puts方法中发送原始JSON数据在Guzzle POST Body中?

This should be soo simple but I have spent hours searching for the answer and am truly stuck. I am building a basic Laravel application and am using Guzzle to replace the CURL request I am making at the moment.

actually I want to send data as JSON in request Body , in PUT method ,using Guzzel PHP client. please anyone help me how can i send. please share complete code , i am new to using it.

According to the doc of guzzle

$response = $client->request('PUT', '/put', ['json' => ['foo' => 'bar']]);

What version of guzzle do you have and what did you try ?