title: Connect to a lot of databases simultaneously in Laravel 5.2
body: <p>I have found a lot of ways to change the default connection from the config/database.php file from all over the internet, but I don't want a multitenant app I need to connect to a lot of databases simultaneously and I lack the experience to get the code working. I have created so far model controller and table named DATABASES in my default database where I need to be connected all the time, where I store the configuration options from my application now I need to set up these connections and I can't do it.</p>
  
  <p>I read all about this <a href="https://lukevers.com/2015/03/25/on-the-fly-database-connections-with-laravel-5" rel="nofollow">on the fly database connection</a> and <a href="http://Hitting%20multiple%20databases%20dinamically%20with%20Laravel" rel="nofollow">multidatases connections</a>, but I can't figure out.</p>
  
  <p>My logic is this:</p>
  
  <ol>
  <li>Send configuration data options of the new database I in my table databases in my (default) Database.</li>
  <li>Enable this database with a checkbox.</li>
  <li>Show users from my default database and my new ENABLED connection.</li>
  <li>Disable second or third connection but always have access to my default database.</li>
  </ol>
  
  <p>I don't need code I need guidance, hope someone understand what I need to do!</p>