title: Laravel return cURL error 3: <url> malformed
body: <p>please I am storing the BASE URL for an endpoint in my .env file and calling this endpoint in my controller. 
  When I do this: </p>
  
  <pre><code>$request = $client-&gt;get(env('URI').'/positions');
  </code></pre>
  
  <p>I get this error - cURL error 3:  malformed </p>
  
  <p>But when I do this - </p>
  
  <pre><code>$url = env('URI');
  $request = $client-&gt;get($url.'/positions');
  </code></pre>
  
  <p>It works. What might be the problem here?</p>