File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -70,23 +70,13 @@ public function post(array $data = []): Response
7070 ->post ($ this ->getFullUrl (), $ data );
7171 }
7272
73-
74- public function patch (array $ data = []): Response
75- {
76- return $ this ->prepareRequest ()
77- ->patch ($ this ->getFullUrl (), $ data );
78- }
79-
80- public function put (array $ data = []): Response
73+ public function put (null |array $ data = null ): Response
8174 {
8275 return $ this ->prepareRequest ()
83- ->put ($ this ->getFullUrl (), $ data );
84- }
76+ ->send ('PUT ' , $ this ->getFullUrl (), [
77+ 'json ' => $ data ,
78+ ]);
8579
86- public function delete (array $ data = []): Response
87- {
88- return $ this ->prepareRequest ()
89- ->delete ($ this ->getFullUrl (), $ data );
9080 }
9181
9282 /******************** SETTERS && GETTERS ********************/
You can’t perform that action at this time.
0 commit comments