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
58
58
relationships.
59
59
60
60
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>`__
62
62
in the Laravel docs.
63
63
64
64
One to One Example
@@ -85,17 +85,17 @@ and add the relationship between them:
85
85
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
86
86
:language: php
87
87
: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
90
90
91
91
The following sample code shows how you can access the related models by using
92
92
the dynamic properties as defined in the example classes:
93
93
94
94
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
95
95
:language: php
96
96
: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
99
99
100
100
The models created in the prior examples resemble the following documents
101
101
in MongoDB:
You can’t perform that action at this time.
0 commit comments