From 8ba0a6214c38f49a6f857670a396d9d9c465d1b1 Mon Sep 17 00:00:00 2001 From: nurfaizfy Date: Sat, 18 Jun 2022 04:20:21 +0700 Subject: [PATCH] fix code --- src/GameValidation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameValidation.php b/src/GameValidation.php index cd88a73..684b997 100644 --- a/src/GameValidation.php +++ b/src/GameValidation.php @@ -33,7 +33,7 @@ protected function request($url, $post = false, $headers = false) if ($post) { $response = $client->request('POST', $url, [ - 'json' => $post, + 'form_params' => $post, ])->getBody()->getContents(); } else { $response = $client->request('GET', $url)->getBody()->getContents();