1 month ago

Nested relationship searchable

Posted 1 month ago by Ara

Hey guys, I have a quick question. I have 4 models: Member, Player/Coach and TeamRoster. So TeamRoster has a morph relationship with Player and Coach. Player and Coach have a 1 to 1 with Member. From the page to add a new TeamRoster resource, I added a MorphTo with searchable. But I can only search using the id, is it possible to search by the member.full_name?

Please sign in or create an account to participate in this conversation.