Skip to content

Commit 804d141

Browse files
committed
changes to text
1 parent 7b80b10 commit 804d141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/eloquent-models/model-class.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Change the Model Collection Name
108108

109109
By default, the model uses the snake case plural form of your model
110110
class name. To change the name of the collection the model uses to retrieve
111-
and save data in MongoDB, override the ``$collection`` property of the model
111+
and save data in MongoDB, override the ``$table`` property of the model
112112
class.
113113

114114
.. note::
@@ -124,7 +124,7 @@ The following example specifies the custom MongoDB collection name,
124124
:emphasize-lines: 9
125125
:dedent:
126126

127-
Without overriding the ``$collection`` property, this model maps to the
127+
Without overriding the ``$table`` property, this model maps to the
128128
``planets`` collection. With the overridden property, the example class stores
129129
the model in the ``celestial_body`` collection.
130130

0 commit comments

Comments
 (0)