File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ The following section shows an example of how to create one to one
5858relationships.
5959
6060To learn more about one to one relationships, see
61- `One to One <https://laravel.com/docs/10.x /eloquent-relationships#one-to-one>`__
61+ `One to One <https://laravel.com/docs/{+laravel-docs-version+} /eloquent-relationships#one-to-one>`__
6262in the Laravel docs.
6363
6464One to One Example
@@ -85,17 +85,17 @@ and add the relationship between them:
8585.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
8686 :language: php
8787 :dedent:
88- :starts -after: begin one-to-one save
89- :ends -before: end one-to-one save
88+ :start -after: begin one-to-one save
89+ :end -before: end one-to-one save
9090
9191The following sample code shows how you can access the related models by using
9292the dynamic properties as defined in the example classes:
9393
9494.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
9595 :language: php
9696 :dedent:
97- :starts -after: begin dynamic property example
98- :ends -before: end dynamic property example
97+ :start -after: begin dynamic property example
98+ :end -before: end dynamic property example
9999
100100The models created in the prior examples resemble the following documents
101101in MongoDB:
You can’t perform that action at this time.
0 commit comments