Support the ongoing development of Laravel.io →
Configuration Database Architecture
Last updated 2 years ago.
0

can you maybe try the before filter and change the default connection there?

e.g in your db config file you have default: mysql.. rename that to connection1 (or whatever), add another called connection2 (or whatever)..

have the default connection used triggered by an env (or even a variable) that you manipulate on the before filter??

0

Seems like a reasonable way to go around it, thank you.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BCleverly bcleverly Joined 13 Feb 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.