Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Add restrictOnUpdate() method to the schema builder #39350

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

shadoWalker89
Copy link
Contributor

@shadoWalker89 shadoWalker89 commented Oct 25, 2021

Hi,

In a new migration i tried using restrictOnUpdate() but it does not exist.

Laravel has a cascadeOnUpdate() but does not have a restrictOnUpdate().

I know that i can use onUpdate('restrict') but since laravel already has a helper for the cascade on update and also has a restrict helper for the delete, it only makes sense to add helper for the restrict on update as well.

Hi,

Laravel has a `cascadeOnUpdate()` but does not have a `restrictOnUpdate()`.

I know that i can use `onUpdate('restrict')` but since laravel already has a helper for the cascade and also has a restrict helper for the delete, it only makes sense to add helper for the restrict on update as well.
@GrahamCampbell GrahamCampbell changed the title Add restrictOnUpdate() method to the schema builder [8.x] Add restrictOnUpdate() method to the schema builder Oct 25, 2021
@taylorotwell taylorotwell merged commit 40afd67 into laravel:8.x Oct 25, 2021
@shadoWalker89 shadoWalker89 deleted the patch-3 branch October 25, 2021 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants