title: Second Database Not configured Error in Laravel 5.3
body: <p>Friends, I am trying to develop a package in Laravel 5.3 release by using two databases within the host. The first, default, db connects to users table for all authentication and the second is specific to client. I may have many clients and each client will have his own set of tables within the host. It can be done in a single db but i am trying to do this for a specific reason.</p>
  
  <p>The problem is i am getting an error that Dabatabase [18547383] not configured but it is configured and present in the system. The top of backtrace is reproduced below.</p>
  
  <p><code>in DatabaseManager.php line 242</code>
  <code>at DatabaseManager-&gt;getConfig('18547383') in DatabaseManager.php line 160</code>
  <code>at DatabaseManager-&gt;makeConnection('18547383') in DatabaseManager.php line 68</code>
  <code>at DatabaseManager-&gt;connection('18547383') in Model.php line 3351</code>
  <code>at Model::resolveConnection('18547383') in Model.php line 3317</code></p>
  
  <p>Upon probing a bit in the DatabaseManager.php, at line 240, I have tried to introduce an error to see the data present in the config array.</p>
  
  <p>Strangely, all three named (defined in config) connections viz. mysql, mysql2 and pgsql have the same array values. In fact the pgsql configurations have not been populated in the config file yet they have the same values as that of the default. Hence, it is not finding the second db in the array and hence the error.</p>
  
  <p>The question is, is it a bug in L5.3 ? how can I correctly populate the database connections so that it recognizes the second database.</p>