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??
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community