We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b385604 commit efbb59eCopy full SHA for efbb59e
src/API/AbstractAPI.php
@@ -17,6 +17,7 @@
17
use ArkEcosystem\Client\Contracts\API;
18
use ArkEcosystem\Client\Http\Request;
19
use GuzzleHttp\Client;
20
+use Illuminate\Support\Arr;
21
22
/**
23
* This is the abstract resource class.
@@ -52,7 +53,9 @@ public function __construct(Connection $connection)
52
53
*/
54
protected function get(string $path, array $query = [])
55
{
- $response = $this->connection->getHttpClient()->get($path, compact('query'));
56
+ $response = $this->connection->getHttpClient()->get($path, [
57
+ 'query' => Arr::dot($query),
58
+ ]);
59
60
return json_decode($response->getBody()->getContents(), true);
61
}
0 commit comments