diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 198807a02..1a73e62a2 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -116,9 +116,9 @@ class MoonCalc { //Base url is https://market.fuzzwork.co.uk/aggregates/?region=10000002&types=34 //Going to use curl for these requests foreach($ItemIDs as $key => $value) { - $client = new Client(); - $url = 'https://market.fuzzwork.co.uk/aggregates/?region=10000002&types=' . $value; - $result = $client->request('GET', $url); + $client = new Client(['base_uri' => 'https://market.fuzzwork.co.uk/aggregates/']); + $uri = '?region=10000002&types=' . $value; + $result = $client->request('GET', $uri); $item = $result->getBody(); dd($item); DB::table('Prices')->insert([