Skip to content

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