laravel 5 Changing database name in runtime
问题 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 Config::set('database.connections.mysql.database', 'database1'); but when I try using queries , it still uses the