Using migrate fresh with cascades #8
Unanswered
MortenDHansen
asked this question in
Q&A
Replies: 1 comment
-
Hi @MortenDHansen, we are currently using the constrained relation in order to be able to automatically delete all marks related to a user who is being deleted (or whose key is being updated). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The migrations specify
->constrained()->cascadeOnUpdate()->cascadeOnDelete()
on foreignId, but this prevents using Laravels database refresh since table users can't be dropped.In context of the package, what is the functionality of cascade to the foreign?
Beta Was this translation helpful? Give feedback.
All reactions