I am finding the 'collection' approach to single image handling strange.
If I have a model with multiple image fields, and I want them to all only allow a single image per field, I have to make a bunch of different collections? This makes no sense to me, since I want all the image fields to draw from the same collection, but not to allow each individual field to select more than one item from the collection in question, and definitely not to delete all other items in the collection on the base media table.
This 'single' option should be set at the Field level, not implemented at the underlying spatie media collection level?
Am I just misunderstanding the docs, or is creating a bunch of separate collections the only way make a model have multiple single selection only image fields?
I am finding the 'collection' approach to single image handling strange.
If I have a model with multiple image fields, and I want them to all only allow a single image per field, I have to make a bunch of different collections? This makes no sense to me, since I want all the image fields to draw from the same collection, but not to allow each individual field to select more than one item from the collection in question, and definitely not to delete all other items in the collection on the base
media
table.This 'single' option should be set at the Field level, not implemented at the underlying spatie media collection level?
Am I just misunderstanding the docs, or is creating a bunch of separate collections the only way make a model have multiple single selection only image fields?