{"action":"opened","issue":{"url":"https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/issues/8","repository_url":"https://api.github.com/repos/staudenmeir/eloquent-has-many-deep","labels_url":"https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/issues/8/comments","events_url":"https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/issues/8/events","html_url":"https://github.com/staudenmeir/eloquent-has-many-deep/issues/8","id":372132317,"node_id":"MDU6SXNzdWUzNzIxMzIzMTc=","number":8,"title":"Possible to merge two Relations?","user":{"login":"NicksonYap","id":5380731,"node_id":"MDQ6VXNlcjUzODA3MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/5380731?v=4","gravatar_id":"","url":"https://api.github.com/users/NicksonYap","html_url":"https://github.com/NicksonYap","followers_url":"https://api.github.com/users/NicksonYap/followers","following_url":"https://api.github.com/users/NicksonYap/following{/other_user}","gists_url":"https://api.github.com/users/NicksonYap/gists{/gist_id}","starred_url":"https://api.github.com/users/NicksonYap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicksonYap/subscriptions","organizations_url":"https://api.github.com/users/NicksonYap/orgs","repos_url":"https://api.github.com/users/NicksonYap/repos","events_url":"https://api.github.com/users/NicksonYap/events{/privacy}","received_events_url":"https://api.github.com/users/NicksonYap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T22:10:37Z","updated_at":"2018-10-19T22:10:37Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI've successfully implemented this Laravel package, it's awesome\r\n\r\nI have two possible Relations:\r\n\r\n```\r\nOrder -> belongs to many -> DeliveryOrder -> belongs to many -> Invoices\r\n```\r\n\r\n```\r\nOrder -> belongs to many -> Invoices\r\n```\r\n\r\nSome `Orders` can relate directly to `Invoices`, some will have to go through `DeliveryOrder`\r\n\r\nThey have different possible paths but the start and end Models of the possible paths are the same\r\n\r\nI'm able to use hasManyDeep to get both relations, separately\r\n\r\nBut how can we add support or workaround to combine the two Relations into one?\r\n\r\n(not asking to convert into a Collection or array and merge them, that's cheating)\r\n\r\nThanks!\r\n\r\n"}}
{"actor":{"display_login":"NicksonYap"}}