Commit ff6eb2db authored by Jens Segers's avatar Jens Segers

Update readme

parent fa840a68
......@@ -378,6 +378,10 @@ Now we can access the user's books through the dynamic property:
$books = User::first()->books;
When using embedded documents, there will also be an inverse relation available:
$user = $book->user;
Inserting and updating embedded documents works just like the `belongsTo` relation:
$book = new Book(array('title' => 'A Game of Thrones'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment