You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to retrieve a media using either its file name (in combination with the collection name) or the primary key in the media table.
Here is my use. I have a products model and a product can have multiple images. However, I want one image to be the default image. I'm currently saving the file name of the default image in the product table. Now I want to retrieve the URL or any other information specifically for the default image.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to be able to retrieve a media using either its file name (in combination with the collection name) or the primary key in the media table.
Here is my use. I have a products model and a product can have multiple images. However, I want one image to be the default image. I'm currently saving the file name of the default image in the product table. Now I want to retrieve the URL or any other information specifically for the default image.
Beta Was this translation helpful? Give feedback.
All reactions