Skip to content

Commit d6d874e

Browse files
author
Chris Cho
committed
rst fixes
1 parent 49bcdef commit d6d874e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/eloquent-models/relationships.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The following section shows an example of how to create one to one
5858
relationships.
5959

6060
To 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>`__
6262
in the Laravel docs.
6363

6464
One 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

9191
The following sample code shows how you can access the related models by using
9292
the 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

100100
The models created in the prior examples resemble the following documents
101101
in MongoDB:

0 commit comments

Comments
 (0)