I have a collaborators table, and 2 other activity tables, each with a time column used to perform that activity and would like to add these tables to know the total time, for example, employee A did 10 hours on a project (table 1) and another 10 hours in parallel activities (table 2), adds the two and stays 20 hours.
I'm using Laravel, my question is how to do this using Eloquent ORM. I'm a bit trapped in logic, do I need to use many to many relation? Do you have any examples? Thanks in advance.