1public function putGuzzleRequest()
2
3{
4
5 $client = new \GuzzleHttp\Client();
6
7 $url = "http://myexample.com/api/posts/1";
8
9 $myBody['name'] = "Demo";
10
11 $request = $client->put($url, ['body'=>$myBody]);
12
13 $response = $request->send();
14
15
16
17 dd($response);
18
19}