datashaman

testing tag

Testing multi-connection models

When testing in Laravel with models that have custom connections set, you need a way to force the connection to one of your choosing for the duration of the test.