Support the ongoing development of →
Laravel Database
Last updated 1 year ago.

You can define multiple database connections and use them on your queries, see:

It is also possible to use them with your eloquent models. See:

Does that help you?

kevinb1989 liked this reply


When using multiple connections, you may access each connection via the connection method on the DB facade. The name passed to the connection method should correspond to one of the connections listed in your config/database.php configuration.

Check out these helpful links: ..... ......

Last updated 3 years ago.

Sign in to participate in this thread!


Your banner here too?

Chetna chetnachandra Joined 22 Mar 2021


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.