Repeater with hasMany

I have this tab with french translations in a repeater. Similar with it, I have a tab for Dutch translations, the difference between them being the relationship.
->relationship('translations', function ($query) {
$query->where('language_code', 'nl')->get()->toArray();
})
->relationship('translations', function ($query) {
$query->where('language_code', 'nl')->get()->toArray();
})
The two tabs display only the Dutch translation, not the French and the Dutch one. Have you any idea how can I display the corresponding translation from relationship?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?