Skip to content

Commit ba43ccd

Browse files
committed
Readme update
1 parent b2e0fd7 commit ba43ccd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ You can remove an embedded document by using the `destroy()` method:
395395
$book = $user->books()->first();
396396

397397
$user->books()->destroy($book->_id);
398+
// or
399+
$user->books()->destroy($book);
398400

399401
Again, you may override the conventional local key by passing a second argument to the embedsMany method:
400402

0 commit comments

Comments
 (0)