title: change Laravel default user db connection to another db connection
body: <p>I have config/database.php as follow:</p>
  
  <pre><code>'default' =&gt; 'web',
  
  'connections' =&gt; array(
  
  # Our primary database connection
  'web' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; 'host1',
      'database'  =&gt; 'database1',
      'username'  =&gt; 'user1',
      'password'  =&gt; 'pass1'
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
  ),
  
  # Our secondary database connection
  'another' =&gt; array(
      'driver'    =&gt; 'mysql',
      'host'      =&gt; 'host2',
      'database'  =&gt; 'database2',
      'username'  =&gt; 'user2',
      'password'  =&gt; 'pass2'
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
      'prefix'    =&gt; '',
  ),
  </code></pre>
  
  <p>),</p>
  
  <p>and i'm using standard laravel 5.3 user authentication.</p>
  
  <p>i tried in my registercontroller.php: </p>
  
  <pre><code>protected function create(array $data)
  {
  
      $user = new user();
      $user-&gt;setConnection('another');
      ...
  }
  </code></pre>
  
  <p>and still no luck</p>
  
  <p>if i like to move or change the db connection into 'another' db connection for anything related with user (e.g. login, register, forgot pass, etc.), where is the settings that i need to change?</p>
  
  <p>I just tried to change my config/database.php default connection as follow: </p>
  
  <pre><code>    'default' =&gt; 'another',
  </code></pre>
  
  <p>and it works, so it seems like i need to tell/configure somewhere that to use 'another' DB connection for any user transaction</p>
  
  <p>Thanks!</p>