title: Unsupported driver mysql illuminate
body: <p>I'm using Illuminate with Slim v3. Trying to connect to database results in an error :</p>
  
  <pre><code>Type: InvalidArgumentException
  Message: Unsupported driver []
  File: C:\xampp\htdocs\slim-app\vendor\illuminate\database\Connectors\ConnectionFactory.php
  Line: 237
  </code></pre>
  
  <p>My config is as follow : </p>
  
  <pre><code>$db_host = "127.0.0.1";
  $db_name = "db";
  $db_user = "user";
  $db_pass = "password";
  
  
  use Illuminate\Database\Capsule\Manager AS Capsule;
  
  $capsule = new Capsule();
  $capsule-&gt;addConnection([
    'dirver'    =&gt; "mysql",
    "host"      =&gt; $db_host,
    "database"  =&gt; $db_name,
    "username"  =&gt; $db_user,
    "password"  =&gt; $db_pass,
    "charset"   =&gt; "utf8",
    "collation" =&gt; "utf8_general_ci",
    "prefix"    =&gt; ""
  ]);
  
  $capsule-&gt;bootEloquent();
  </code></pre>
  
  <p>And trying to connect : </p>
  
  <pre><code>$_message = new Message();
  $messages = $_message-&gt;all();
  </code></pre>
  
  <p>The error is occuring. Can somebody help me to fix it ?</p>