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
A lot of times a specific media collection type is reused: like an Avatar which is single, located in public, allow for only accepts images, generates responsive image, etc or specific upload collections shared between different models
I tried to either extend MediaCollection - and I need to overload constructor; or have a wrapper - which would require resolution logic.
Would it be possible to define MediaCollections as separate classes (however they are defined) and check if addMediaCollection() receives a MediaCollection instance, just add it instead of ::create($name)?
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
-
A lot of times a specific media collection type is reused: like an Avatar which is single, located in public, allow for only accepts images, generates responsive image, etc or specific upload collections shared between different models
I tried to either extend MediaCollection - and I need to overload constructor; or have a wrapper - which would require resolution logic.
Would it be possible to define MediaCollections as separate classes (however they are defined) and check if addMediaCollection() receives a MediaCollection instance, just add it instead of ::create($name)?
Beta Was this translation helpful? Give feedback.
All reactions