Skip to content

Commit

Permalink
Refactored response
Browse files Browse the repository at this point in the history
  • Loading branch information
adenijiayocharles committed Feb 6, 2021
1 parent df4c8ce commit 5bba8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Identibyte.php
Expand Up @@ -31,8 +31,8 @@ public static function check($email = null)
try {
$response = $client->request('get', $url);
return response()->json([
'code' => $response->getStatusCode(),
"body" => $response->getBody()->getContents()
'status_code' => $response->getStatusCode(),
"body" => json_decode($response->getBody()->getContents(), true)
]);
} catch (GuzzleException $e) {
return response()->json([
Expand Down

0 comments on commit 5bba8aa

Please sign in to comment.