Is there a best practice to delete logs on forceDelete? #862
Answered
by
Gummibeer
ChrisAdels
asked this question in
Q&A
-
Hey, thx for the nice package. I use softDelete and want to delete all records of the current model on forceDelete. What would be the best practice? Do I have to search with eloquent for the logs and delete them or is there something ready to use? I could only found the general clear command. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Gummibeer
Mar 22, 2021
Replies: 1 comment 3 replies
-
I would use an observer and clear the relationship on |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ChrisAdels
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would use an observer and clear the relationship on
deleted
.