From dba0f943cdfff5f1769a293d70b5fa79a7705d42 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 22:15:27 -0500 Subject: [PATCH] last guzzle attempt --- app/Library/MoonCalc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 1a73e62a2..ceef0c0af 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -119,7 +119,7 @@ class MoonCalc { $client = new Client(['base_uri' => 'https://market.fuzzwork.co.uk/aggregates/']); $uri = '?region=10000002&types=' . $value; $result = $client->request('GET', $uri); - $item = $result->getBody(); + $item = json_decode($result->getBody()); dd($item); DB::table('Prices')->insert([ 'Name' => $key,