title: Changing database name in Laravel/Homestead
body: <p>I started learning Laravel just an hour ago and following tutorials.</p>
  
  <p>My settings for database are as follow (File: app/config/database.php):</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; 'laraveltest',
          'username'  =&gt; 'root',
          'password'  =&gt; 'secret',
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
      ),
  </code></pre>
  
  <p>In mySQL on homestead, I already created <code>laraveltest</code> database. I also created migration file in <code>database/migration</code> directory with following code:</p>
  
  <pre><code>public function up()
  {
      Schema::create('users', function($table)
      {
          $table-&gt;increments('id');
          $table-&gt;string('email')-&gt;unique();
          $table-&gt;string('name');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>and migration commands were:</p>
  
  <pre><code>vagrant@homestead:~/Code/Laravel$ php artisan migrate
  Migration table created successfully.
  Migrated: 2014_08_14_195103_create_users_table
  </code></pre>
  
  <p>As displayed, table users created but in <code>homestead</code> database, not in <code>laraveltest</code> database. Can someone please tell where I went wrong and how to force laravel to use <code>laraveltest</code> database?</p>
  
  <p><strong>Edit after first comment</strong>
  File: bootstrap/start.php</p>
  
  <pre><code>$env = $app-&gt;detectEnvironment(array(
  
      'local' =&gt; array('homestead'),
  
  ));
  </code></pre>