1config(['database.connections.onthefly' => [
2 'driver' => $params->driver,
3 'host' => $params->host,
4 'username' => $params->username,
5 'password' => $params->password
6 ]]);
7
8 return DB::connection('onthefly');