Skip to content

Commit ff6eb2d

Browse files
committed
Update readme
1 parent fa840a6 commit ff6eb2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ Now we can access the user's books through the dynamic property:
378378

379379
$books = User::first()->books;
380380

381+
When using embedded documents, there will also be an inverse relation available:
382+
383+
$user = $book->user;
384+
381385
Inserting and updating embedded documents works just like the `belongsTo` relation:
382386

383387
$book = new Book(array('title' => 'A Game of Thrones'));

0 commit comments

Comments
 (0)