This question already has an answer here:
I'm new in laravel and wondering how could I connect to multiple hosts and multiple databases in Laravel ?
if yes how i could do that dynamically ?
how to add new host connection dynamically ?
how to add new database connection dynamically ?
Config::set("database.connections.mysql", [
"host" => "...",
"database" => "...",
"username" => "...",
"password" => "...
]);
this is what i had found but i have no idea how to work further.
</div>