title: Laravel 5.7 can not connect to SQLSRV Database on Windows (could not find driver)
body: <p>My env file</p>
  
  <pre><code>DB_CONNECTION=sqlsrv
  DB_HOST=DESKTOP-ATB1EFG
  DB_DATABASE=frontdesk
  DB_USERNAME=sa
  DB_PASSWORD=something_secret123
  DB_PORT=1433
  </code></pre>
  
  <p>I have tested with raw php as below, it is successfully connected and return "connected" string. </p>
  
  <pre><code>serverName = "DESKTOP-ATB1EFG";
      $connectionOptions = array(
          "Database" =&gt; "frontdesk",
          "Uid" =&gt; "sa",
          "PWD" =&gt; "something_secret123"
      );
      //Establishes the connection
      $conn = sqlsrv_connect($serverName, $connectionOptions);
      if($conn){
          echo "Connected!";
  
      }else{
          echo "Failed";
      }
  </code></pre>
  
  <p>BUT, when I tried to migrate using <strong>php artisan migrate</strong>, it return QueryExeption </p>
  
  <blockquote>
    <p>could not find driver (SQL: select * from sysobjects where type = 'U'
    and name = migrations)</p>
  </blockquote>
  
  <p>Exception trace:</p>
  
  <blockquote>
    <p>1   PDOException::("could not find driver")</p>
    
    <p>C:\wamp64\www\frontdesk.sys\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70</p>
    
    <p>2<br>
    PDO::__construct("dblib:host=DESKTOP-ATB1EFG:1433;dbname=frontdesk;charset=utf8",
    "sa", "something_secret123", [])
          C:\wamp64\www\frontdesk.sys\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70</p>
  </blockquote>
  
  <p>I have checked with php 7.2.10, it already enables extensions </p>
  
  <pre><code>extension=php_sqlsrv_72_nts_x64.dll
  extension=php_pdo_sqlsrv_72_nts_x64.dll
  extension=php_sqlsrv_72_ts_x64.dll
  extension=php_pdo_sqlsrv_72_ts_x64.dll
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/WREPp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WREPp.png" alt="php.ini extensions"></a></p>