Deleting Model does not deletes directory in custom path generator. #2822
Unanswered
Jagdish-J-P
asked this question in
Ideas
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.
-
We have used custom path for media storage. Our structure is as below:
'medias/' . $media-> model_id . '/' . $media->id . '/'
When we use $model->deleteMedia() it does not deletes directory under medias i.e. model->id is not deleting only children are deleted.
Beta Was this translation helpful? Give feedback.
All reactions