Skip to content

Conditional Relationships #1738

Closed Answered by luanfreitasdev
nilios asked this question in Q&A
Oct 18, 2024 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

I achieved this just by adjusting the relationSearch method

public function relationSearch(): array
{
    return [
        'peripheral' => 'name',
        'product' => 'name'
    ];
}

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nilios
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nilios
Comment options

Answer selected by luanfreitasdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants