Skip to content

Commit 8fefeb4

Browse files
authored
Update README.md
1 parent 8129fde commit 8fefeb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $post->featuredImage()->sync([Image::find(456)]);
9292
$post->images->count(); // 1 row :)
9393
```
9494

95-
:x: DO NOT use `save` it will follow `morphToMany` behaviour and create a new row instead of updating an existing one.
95+
:x: DO NOT use `save` it will follow `morphToMany` behaviour and create rather than update existing.
9696
```php
9797
$post->featuredImage()->save(Image::find(123));
9898
$post->featuredImage()->save(Image::find(456));

0 commit comments

Comments
 (0)