title: Undefined index: REMOTE_ADDR while Laravel migrate
body: <p>When I run <code>php artisan migrate</code> on my local server (running by <code>php artisan serve</code>) I get the following error:</p>
  
  <pre><code>[ErrorExeption]
  Undefined index: REMOTE_ADDR
  </code></pre>
  
  <p>I tried also <code>php artisan migrate --database db_name</code>, output is like this:</p>
  
  <pre><code>[InvalidArgumentExeption]
  Database [db_name] not configured.
  </code></pre>
  
  <p>My app/config/local/database.php looks like following:</p>
  
  <pre><code>'connections' =&gt; array(
      'mysql' =&gt; array(
          'driver'    =&gt; 'mysql',
          'host'      =&gt; 'localhost', // also tried 127.0.0.1
          'database'  =&gt; 'db_name',
          'username'  =&gt; 'root',
          'password'  =&gt; 'mypassword',
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
      )
  )
  </code></pre>
  
  <p>I'm sure MySQL works, I checked it via command line and phpMyAdmin.</p>
  
  <p>Also I included <code>HostnameLookups On</code> inside my <code>httpd.conf</code>, then restarted apache, but nothing helps.</p>
  
  <p>I use Laravel 4.2, Debian.</p>
  
  <p>Any ideas? Thanks in advance.</p>
  
  <p>P.S. Sorry for my English:)</p>
  
  <p>UPD:
  Output of <code>php artisan env</code> is <code>Current application environment: local</code></p>
  
  <p>UPD2:</p>
  
  <p>I created simple route:</p>
  
  <pre><code>Route::get('/test', function() {
      return $_SERVER["REMOTE_ADDR"];
  });
  </code></pre>
  
  <p>It returns <code>::1</code>, but when I execute <code>echo $_SERVER["REMOTE_ADDR"];</code> in php interactive mode (php -a) I get a Notice: <code>Undefined index: REMOTE_ADDR</code> </p>