$connector, "browser" => $browser ]; } public static function endpoint($url) { return config("docker.endpoint", "http://localhost") . $url; } public static function info() { try { $connection = Docker::connect(); $response = await($connection->browser->get(Docker::endpoint('/info'))); return json_decode($response->getBody()); } catch(Exception $e) { throw $e; } } }