title: Laravel Artisan command on database connection
body: <p>I'm working on a projects where I've multiple database connections. I'm able to run artisan command from my controller like <code>Artisan::call('migrate', array('--path' =&gt; 'app/database/migration'));</code></p>
  
  <p>However this runs on my default database connection pretty well. Now I'm looking for a way to call artisan command for other dynamic database connection. I know I can specify database name in my command like <code>Artisan::call('migrate', array('--database' =&gt; 'myDatabase', '--path' =&gt; 'app/database/migration/myCustomMigration'));</code> but it's not working as expected. It's still running command on my default database connection.</p>
  
  <p>Is there any way to do so as I can run work with eloquent like...</p>
  
  <pre><code>$user = new User;
  $user-&gt;setConnection('myDatabaseConnectionKey');
  $user-&gt;email = $email;
  $user-&gt;password = Hash::make('password');
  $user-&gt;first_name = 'First name';
  $user-&gt;last_name = 'Last name';
  $user-&gt;created_at = new DateTime();
  $user-&gt;updated_at = new DateTime();
  $user-&gt;save();
  </code></pre>
  
  <p>Thanks in advance.</p>