docs fixtypo

[skip ci]
This commit is contained in:
silverqx
2024-05-06 09:19:55 +02:00
parent cd986fe585
commit 8ef821980b

View File

@@ -1093,7 +1093,7 @@ If you need to save multiple related models, you may use the `saveMany` method:
post->comments()->saveMany({
{{"message", "A new comment."}},
{{'message", "Another new comment."}},
{{"message", "Another new comment."}},
});
The `save` and `saveMany` methods will not add the new models to any in-memory relationships that are already loaded onto the parent model. If you plan on accessing the relationship after using the `save` or `saveMany` methods, you may wish to use the `refresh` method to reload the model and its relationships: