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
{{ message }}
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
I'm using soft-delete with my currency model and would like to enforce foreign key integrity by checking that regions hasMany relationship is empty before any currency is allowed to be deleted. Will validation be performed on $currency->delete() call? If not, is there a way to enforce this behaviour on the model level (to avoid replicating same logic in multiple places)?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using soft-delete with my
currency
model and would like to enforce foreign key integrity by checking thatregions
hasMany relationship is empty before any currency is allowed to be deleted. Will validation be performed on$currency->delete()
call? If not, is there a way to enforce this behaviour on the model level (to avoid replicating same logic in multiple places)?The text was updated successfully, but these errors were encountered: