show all db entries with media collection 'audio' #2666
Unanswered
williamwithin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using medialibrary with a few media collections, i.e. audio, image, document, etc
Is there an easy way to show all models which have something in the media collection 'audio'?
Besides iterating through a loop, I have not found a way to do this. Any suggestions appreciated.
For example, I can do this on the Media model:
But I'd like to do that with the model that I'm using that implements HasMedia and uses InteractsWithMedia.
Beta Was this translation helpful? Give feedback.
All reactions