Skip to content

Commit 6cb7cc6

Browse files
committed
wip
1 parent 2f51ce4 commit 6cb7cc6

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

docs/fundamentals/write-operations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ methods that you can use to write data to MongoDB by using
3333
.. tip::
3434

3535
To learn more about any of the methods shown on this page, see the
36-
link provided in each section.
36+
links provided in each section.
3737

3838
Insert One
3939
----------

docs/fundamentals/write-operations/delete.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,11 @@ modify delete behavior, see the following sections:
168168
- :ref:`Pruning <laravel-model-pruning>`, which lets you define conditions
169169
that qualify a document for automatic deletion
170170

171-
To view runnable code examples that demonstrate how to insert documents
172-
by using the {+odm-short+}, see the
173-
:ref:`laravel-fundamentals-write-ops` guide.
171+
To view runnable code examples that demonstrate how to delete documents
172+
by using the {+odm-short+}, see the following usage examples:
173+
174+
- :ref:`laravel-delete-one-usage`
175+
- :ref:`laravel-delete-many-usage`
174176

175177
To learn how to insert documents into a MongoDB collection, see the
176178
:ref:`laravel-fundamentals-write-insert` guide.

docs/fundamentals/write-operations/insert.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ The examples in this section show how to use the ``save()`` and
4545
``create()`` Eloquent methods to insert an instance of a ``Concert``
4646
model as a MongoDB document.
4747

48+
save() Method
49+
~~~~~~~~~~~~~
50+
4851
When the ``save()`` method succeeds, you can access the model instance on
4952
which you called the method.
5053

@@ -76,6 +79,9 @@ You can retrieve the inserted document's ``_id`` value by accessing the model's
7679
:start-after: begin inserted id
7780
:end-before: end inserted id
7881

82+
create() Method
83+
~~~~~~~~~~~~~~~
84+
7985
If you enable mass assignment by defining either the ``$fillable`` or
8086
``$guarded`` attributes, you can use the Eloquent model ``create()`` method
8187
to perform the insert in a single call, as shown in the following example:
@@ -119,8 +125,10 @@ Additional Information
119125
----------------------
120126

121127
To view runnable code examples that demonstrate how to insert documents
122-
by using the {+odm-short+}, see the
123-
:ref:`laravel-fundamentals-write-ops` guide.
128+
by using the {+odm-short+}, see the following usage examples:
129+
130+
- :ref:`laravel-insert-one-usage`
131+
- :ref:`laravel-insert-many-usage`
124132

125133
To learn how to modify data that is already in MongoDB, see the
126134
:ref:`laravel-fundamentals-write-modify` guide.

docs/fundamentals/write-operations/modify.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,11 @@ in the {+server-docs-name+}.
430430
Additional Information
431431
----------------------
432432

433-
To view runnable code examples that demonstrate how to insert documents
434-
by using the {+odm-short+}, see the
435-
:ref:`laravel-fundamentals-write-ops` guide.
433+
To view runnable code examples that demonstrate how to update documents
434+
by using the {+odm-short+}, see the following usage examples:
435+
436+
- :ref:`laravel-update-one-usage`
437+
- :ref:`laravel-update-many-usage`
436438

437439
To learn how to insert documents into a MongoDB collection, see the
438440
:ref:`laravel-fundamentals-write-insert` guide.

0 commit comments

Comments
 (0)