dynamically changing connections sounds kinda insecure. instead keep an array of url to connection map then set it using Config::set()
Config::set('database.default', $connectionName);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community