title: Laravel 5.4 odbc connection MS SQL SERVER
body: <p>I need to config Laravel 5.4 to use the ODBC PDO Driver for Microsoft SQL Server.I didnt find any useful resource. If anyone previously used odbc in laravel 5.4 please help me out.</p>
  
  <p>Database.php</p>
  
  <pre><code>    'odbc'   =&gt; [
          'driver'   =&gt; 'odbc',
          'dsn'      =&gt; 'Driver={SQL Server};Server=
          {serverName};Trusted_Connection=true;Database=meteor;',
          'host'     =&gt; 'DESKTOP-B9M4O7M\SQLEXPRESS',
          'database' =&gt; 'meteor',
          'username' =&gt; 'DESKTOP-B9M4O7M\admin',
          'password' =&gt; '',
          'grammar' =&gt; [
              'query' =&gt; Illuminate\Database\Query\Grammars\SqlServerGrammar::class,
              'schema' =&gt; Illuminate\Database\Schema\Grammars\SqlServerGrammar::class,
          ],
       ],
  </code></pre>