src/Mattbrown/Laracurl/Laracurl.php
public function buildUrl($url, array $query)
	{
		// append the query string
		if (!empty($query)) {
			$queryString = http_build_query($query);
			$url .= '?' . $queryString;
		}

		return $url;
	}
public function buildUrl($url, array $query)
	{
		// append the query string
		if (!empty($query)) {
			$queryString = http_build_query($query);
			$url .= '?' . $queryString;
		}

		return $url;
	}
Build an URL with an optional query string.

@param  string $url   the base URL without any query string
@param  array  $query array of GET parameters

@return string