In my database.php
, I have TWO databases configured.
\'db1\' => array(
\'driver\' => \'pgsql\',
\'host\' => \'localhost\',
Have you tried simply to change the default connection in app/config/database.php
?
'default' => 'db2'
If it's not the case then please provide more information on the problem.
Edit: So it seems you have all connections hardcoded in the models. Try updating the models like that:
protected $connection = 'db2';