Skip to content

Commit e2fb9fc

Browse files
committed
add imports
1 parent 87ffd83 commit e2fb9fc

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Diff for: docs/includes/usage-examples/CountTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
use App\Models\Movie;
88
use MongoDB\Laravel\Tests\TestCase;
9+
use Illuminate\Database\Query\Builder;
10+
use Illuminate\Support\Facades\DB;
911

1012
class CountTest extends TestCase
1113
{

Diff for: docs/includes/usage-examples/DeleteManyTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
use App\Models\Movie;
88
use MongoDB\Laravel\Tests\TestCase;
9+
use Illuminate\Database\Query\Builder;
10+
use Illuminate\Support\Facades\DB;
911

1012
class DeleteManyTest extends TestCase
1113
{

Diff for: docs/usage-examples/deleteMany.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ method.
2626

2727
.. tip::
2828

29-
To learn more about deleting documents with the {+odm-short+}, see the :ref:`laravel-fundamentals-delete-documents`
30-
section of the Write Operations guide.
29+
To learn more about deleting documents with the {+odm-short+}, see
30+
the :ref:`laravel-fundamentals-delete-documents` section of the Write
31+
Operations guide.
3132

3233
Example
3334
-------

Diff for: docs/usage-examples/deleteOne.txt

+13-12
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@ Delete a Document
1717
:depth: 1
1818
:class: singlecol
1919

20-
You can delete a document in a collection by retrieving a single Eloquent model and calling
21-
the ``delete()`` method, or by calling ``delete()`` directly on a query builder.
20+
You can delete a document in a collection by retrieving a single
21+
Eloquent model and calling the ``delete()`` method, or by calling
22+
``delete()`` directly on a query builder.
2223

23-
To delete a document, pass a query filter to the ``where()`` method, sort the matching documents,
24-
and call the ``limit()`` method to retrieve only the first document. Then, delete this matching
25-
document by calling the ``delete()`` method.
24+
To delete a document, pass a query filter to the ``where()`` method,
25+
sort the matching documents, and call the ``limit()`` method to retrieve
26+
only the first document. Then, delete this matching document by calling
27+
the ``delete()`` method.
28+
29+
.. tip::
30+
31+
To learn more about deleting documents with the {+odm-short+}, see
32+
the :ref:`laravel-fundamentals-delete-documents` section of the Write
33+
Operations guide.
2634

2735
Example
2836
-------
@@ -57,10 +65,3 @@ The example calls the following methods on the ``Movie`` model:
5765
Deleted documents: 1
5866

5967
.. include:: /includes/usage-examples/fact-edit-laravel-app.rst
60-
61-
.. tip::
62-
63-
To learn more about deleting documents with the {+odm-short+}, see the `Deleting Models
64-
<https://laravel.com/docs/{+laravel-docs-version+}/eloquent#deleting-models>`__ section of the
65-
Laravel documentation.
66-

0 commit comments

Comments
 (0)