You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.