0

Despite adding $connection variable in User model, laravel still uses the default connection. how do I get it to use connection other than the default?

4

1 回答 1

0

尝试

Config::set('database.default','newConnectionName');
于 2013-08-06T21:22:46.217 回答