From 3b3e2025fefd49836dc10feb06d94184432fc8e1 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 22:08:42 -0500 Subject: [PATCH] guzzle trouble --- app/Library/MoonCalc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index f5ead3b16..198807a02 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -118,7 +118,8 @@ class MoonCalc { foreach($ItemIDs as $key => $value) { $client = new Client(); $url = 'https://market.fuzzwork.co.uk/aggregates/?region=10000002&types=' . $value; - $item = $client->request('GET', $url); + $result = $client->request('GET', $url); + $item = $result->getBody(); dd($item); DB::table('Prices')->insert([ 'Name' => $key,