Skip to content

Problems with multiple connections

Gabriel Mainginski edited this page May 3, 2016 · 1 revision

Apparently all methods provided by Laravel as described here to set multiple connections on the same controller failed. A connection always "persists" over the other.

###Using multiple database

In your model, you can set the $table variable to yourdatabase..tablename. You can change all tablenames to yourdatabase..tablename, including raw queries.

Clone this wiki locally