xxxxxxxxxx
DB::purge('mysql');
xxxxxxxxxx
$new_con = DB::connection('your_db_connection');
// using the connection in eloquent
$qry = $new_con->table('123')->get();
xxxxxxxxxx
Config::set('database.connections.mysql.database', 'other_database');
DB::purge('mysql');
xxxxxxxxxx
Config::set('database.connections.mysql.database', 'other_database');