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

[9.x] Add replicateQuietly to Model #43141

Merged
merged 2 commits into from
Jul 12, 2022
Merged

[9.x] Add replicateQuietly to Model #43141

merged 2 commits into from
Jul 12, 2022

Conversation

Sergiobop
Copy link
Contributor

Description

This PR adds a method to easily replicate a model without raising any events. This method is similar to the existing saveQuietly, incrementQuietly, decrementQuietly...
Also added a test.

Usage

$replicated = $model->replicateQuietly();

Should not break any existing features.
Thanks for your time!

@taylorotwell taylorotwell merged commit 14893ea into laravel:9.x Jul 12, 2022
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