laravel 5 Changing database name in runtime
<p>is there a way to change the database name of a connection instead of adding another? 
It's okay if I add 3 or 5 databases in Config.database.connections, but what If I have 100 or more databases I am working with?
Since all use the same HOST, USERNAME and PASSWORD, is there anyway to just change the database name dynamically and work with that during the whole session?
I tried </p>

<pre><code>Config::set('database.connections.mysql.database', 'database1');
</code></pre>

<p>but when I try using queries , it still uses the default one.</p>