kUdtiHaEX Posted June 24, 2020 Share Posted June 24, 2020 I need to sync data between WHMCS and some other database and for that I've hooked into daily cron. But what I need is ability to connect to that other database using Capsule. I've tried to use `addConnection` method together with `setAsGlobal` and `bootEloquent` but no matter what I do I either cannot connect to it or I overwrite the `default` connection. I know how this stuff works in Laravel, but obviously something is different here. So - how can I, inside my module, configure Capsule to use additional database connection for certain queries? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.