[ad_1]
I have 3 database connections. Let’s say con1, con2, con3.
Below is a sample of my code. This code does not work and returns the error below. My other relations are working fine so I think the db connection might be the problem. if I remove the eager loading — with([‘table4’, ‘table2’]) — it works.
table1::with(['table4', 'table2.table3'])
->get();
[ad_2]