src/Mattbrown/Laracurl/Laracurl.php
public function sendRequest(Request $request)
	{
		$this->prepareRequest($request);

		$result = curl_exec($this->ch);

		if ($result === false) {
			throw new \RuntimeException("cURL request failed with error: " . curl_error($this->ch));
		}

		$response = $this->createResponseObject($result);

		curl_close($this->ch);

		return $response;
	}
public function sendRequest(Request $request)
	{
		$this->prepareRequest($request);

		$result = curl_exec($this->ch);

		if ($result === false) {
			throw new \RuntimeException("cURL request failed with error: " . curl_error($this->ch));
		}

		$response = $this->createResponseObject($result);

		curl_close($this->ch);

		return $response;
	}
Send a request.

@param  Request $request

@return Response