8000 [9.x] Add `saveQuietly` convenience methods to relations by dobrakmato · Pull Request #38934 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Add saveQuietly convenience methods to relations #38934

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

Merged
merged 1 commit into from
Sep 24, 2021
Merged

[9.x] Add saveQuietly convenience methods to relations #38934

merged 1 commit into from
Sep 24, 2021

Conversation

dobrakmato
Copy link
Contributor

We can already save Models without triggering events, however we cannot do so with relations. This PR adds two new convenience methods to eloquent relations that do have save method as Model class does.

New saveQuitely methods are implemented with help of save and withoutEvents methods, so it does not introduce almost any new additional code.

@taylorotwell taylorotwell merged commit 5ea1f91 into laravel:master Sep 24, 2021
@GrahamCampbell GrahamCampbell changed the title feature: Add saveQuietly convenience methods to relations [9.x] Add saveQuietly convenience methods to relations Sep 24, 2021
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
0