MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

Issue with multiple eloquent model on the same models #499

Open goneill opened 2 years ago

goneill commented 2 years ago

Hi there -

I am running into a problem - I have a phonecall table where there are two separate relationships on the 'phone' table referencing the caller and the receiver.

But in your code the query is built just referencing the phones table without phones as Caller left join on caller_id and phones as receiver left join on receiver_id

I can share more with you or talk through this with you. I'm thinking of trying to fix it either using the query builder or editing yoru code directly... will let you know.