voyager
voyager copied to clipboard
Get model relationships after and with translation
We had a problem, that we weren't getting the model relations after translating the main model.
For example:
$posts = Post::with(['author', 'translations'])->get()->translate('locale', 'fallbackLocale');
The problem is that the author
parameter (relation) is not appearing in the final translated object, just the main attributes.
And we have fixed this problem.
Please check this also #5554
Why are these changes not merged
I approved the review why it not merged ?
First, I'm glad that this was a part to solve your problem.
Second, does the merging problem have something to do with me (as I have the first commit) or is it something related to the "Voyager" authors?
First, I'm glad that this was a part to solve your problem.
Second, does the merging problem have something to do with me (as I have the first commit) or is it something related to the "Voyager" authors?
I think the Voyager authors not doing any merges, there are a lot of pull-requests not merged, I fell like the project is dead