Skip to content
Discussion options

You must be logged in to vote

We don't support whereHas at the moment, as you've noted.

But you can just treat it as json.

Asset::query()->where('container', 'media')->whereJsonContains('tags', $arrayOfFilteredTerms)

Replies: 1 comment 1 reply

Comment options

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

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