Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ara's avatar
Level 3

Nested relationship searchable

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?

0 likes
0 replies

Please or to participate in this conversation.