Answers for "laravel change db connection on the fly"

PHP
0

laravel change db connection on the fly

config(['database.connections.onthefly' => [
            'driver' => $params->driver,
            'host' => $params->host,
            'username' => $params->username,
            'password' => $params->password
        ]]);

        return DB::connection('onthefly');
Posted by: Guest on July-23-2021

Code answers related to "laravel change db connection on the fly"

Browse Popular Code Answers by Language