There are 3 models:
First (first_id)
Connection (connection_id, first_id, product_id)
Second (second_id, product_id)
I would like to connect the three models together using laravel relationships
First
->joined to Connection though first_id
Connection
->joined to First through first_id
, & joined to Second
through product_id
Second
-> joined to Connection through product_id
So: First joined to Second through Connection first_id
, product_id
Is this possible to do using something like HasManyThrough
?
Thanks for your time