title: Laravel database connection error while running migrations
body: <p>I am developing my project in laravel v4.2 everything is working fine but when I run migrations then I receive following error all the time</p>
  
  <blockquote>
    <p>[InvalidArgumentException]    Database [] not configured.</p>
  </blockquote>
  
  <p>Below is my database configurations</p>
  
  <pre><code>'default' =&gt; 'mysql',
  
  'connections' =&gt; array(
          'sqlite' =&gt; array(
              'driver' =&gt; 'sqlite',
              'database' =&gt; __DIR__ . '/../database/production.sqlite',
              'prefix' =&gt; '',
          ),
          'mysql' =&gt; array(
              'driver' =&gt; 'mysql',
              'host' =&gt; 'localhost',
              'database' =&gt; 'fivestart_db',
              'username' =&gt; 'root',
              'password' =&gt; 'root',
              'charset' =&gt; 'utf8',
              'collation' =&gt; 'utf8_unicode_ci',
              'prefix' =&gt; '',
              'port' =&gt; 3306,
          ),
          'pgsql' =&gt; array(
              'driver' =&gt; 'pgsql',
              'host' =&gt; 'localhost',
              'database' =&gt; 'forge',
              'username' =&gt; 'forge',
              'password' =&gt; '',
              'charset' =&gt; 'utf8',
              'prefix' =&gt; '',
              'schema' =&gt; 'public',
          ),
          'sqlsrv' =&gt; array(
              'driver' =&gt; 'sqlsrv',
              'host' =&gt; 'localhost',
              'database' =&gt; 'database',
              'username' =&gt; 'root',
              'password' =&gt; '',
              'prefix' =&gt; '',
          ),
      ),
  </code></pre>
  
  <p>even all the other project is working fine with no database configurations issue.</p>
  
  <p>I don't know that what is wrong with the code?</p>