Skip to content

BelongsToMany Searchable "SELECT *" #3478

Answered by KasparRosin
henryavila asked this question in Q&A
Discussion options

You must be logged in to vote

Would relatable query solve this?

If you put the relatableQuery function inside your Resource::class

public static function relatableUsers(NovaRequest $request, $query)
{
    return $query->select('id', 'name');
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by henryavila
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