getting all models's media with any collection type #2023
Answered
by
freekmurze
asharifineyestani
asked this question in
Q&A
-
hi how can I delete model's media with any collection type. getMedia() returns all media with default value. but I need all media with any collection type I offered you add this feature:
|
Beta Was this translation helpful? Give feedback.
Answered by
freekmurze
Aug 27, 2020
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
freekmurze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
$model->media->each->delete()