title: issue with Laravel when trying to use Azure SQL server; count(): Parameter must be an array or an object that implements Countable
body: <p>I am trying to use SQL server with Laravel 5.6 and PHP 7.2.9 I have configured my database.php as follows.</p>
  
  <pre><code>'sqlsrv' =&gt; [
          'driver' =&gt; 'sqlsrv',
          'host' =&gt; 'servername.database.windows.net',
          'port' =&gt; '1433',
          'database' =&gt; 'databasename',
          'username' =&gt; 'username',
          'password' =&gt; 'password',
          'charset' =&gt; 'utf8',
          'prefix' =&gt; '',
      ],
  </code></pre>
  
  <p>I have also created this file .env.production which has the following configuration.</p>
  
  <pre><code>APP_ENV=production
  APP_DEBUG=true
  APP_KEY=&lt;APP_KEY&gt;
  DB_CONNECTION=sqlsrv
  DB_HOST=&lt;servername.database.windows.net&gt;
  DB_DATABASE=&lt;databasename&gt;
  DB_USERNAME=&lt;username&gt;
  DB_PASSWORD=&lt;password&gt;
  </code></pre>
  
  <p>When I run the application locally, I don't have any problems. However, when I tried to run the application locally using a Azure's SQL database I get this error:</p>
  
  <p>count(): Parameter must be an array or an object that implements Countable
  and it is pointing to this file:
  C:\Users\Yaqeen\Desktop\cloud\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php</p>
  
  <p>This error shows up after a few second from this error:
  Session store not set on request.</p>
  
  <p>Any suggestion or help is much appreciated. I have searched for a solution but failed to find any.</p>