title: Laravel - Guzzle Request / cURL error 6: Could not resolve host
body: <p>I try to make an API Request to the Github API just for testing. I installed the latest Guzzle Version ( "guzzle/guzzle": "^3.9" )  on my Laravel 5.1 APP.
  In my <code>routes.php</code> i have the following Code:</p>
  
  <pre><code>Route::get('guzzle/{username}', function($username) {
      $client = new Client([
          'base_uri' =&gt; 'https://api.github.com/users/',
      ]);
      $response = $client-&gt;get("/users/$username");
      dd($response);
  });
  </code></pre>
  
  <p>If i now visit the URL domain.dev/github/kayyyy i get the Error <code>cURL error 6: Could not resolve host: users</code>.</p>
  
  <p>Why am i getting this Error?</p>
  
  <p>If i visit <a href="https://api.github.com/users/kayyyy" rel="nofollow">https://api.github.com/users/kayyyy</a> i can see the <code>json</code> output.</p>
  
  <p><strong>I am also using Homestead / Vagrant is this maybe a Problem that the host cant be resolved?</strong></p>
  
  <p><strong>EDIT</strong>
  If i try this without the base_uri it works.</p>
  
  <pre><code>Route::get('guzzle/{username}', function($username) {
     $client = new GuzzleHttp\Client();
      $response = $client-&gt;get("https://api.github.com/users/$username");
      dd($response);
  });
  </code></pre>