Skip to content

Commit b7b0844

Browse files
committed
Readme typo
1 parent 3fe1abb commit b7b0844

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ Again, you may override the conventional local key by passing a second argument
428428

429429
return $this->embedsMany('Book', 'local_key');
430430

431-
When using embedded documents, they will be stored in a _relation attribute of the parent document. This attribute is hidden by default when using `
432-
toArray` or `toJson`. If you want the attribute to be exposed, add it to `$exposed` property definition to your model:
431+
When using embedded documents, they will be stored in a _relation attribute of the parent document. This attribute is hidden by default when using `toArray` or `toJson`. If you want the attribute to be exposed, add it to `$exposed` property definition to your model:
433432

434433
use Jenssegers\Mongodb\Model as Eloquent;
435434

0 commit comments

Comments
 (0)