Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/includes/query-builder/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function testAll(): void
{
// begin query all
$result = DB::table('movies')
->where('movies', 'all', ['title', 'rated', 'imdb.rating'])
->where('genres', 'all', ['Animation', 'Comedy', 'Short'])
->get();
// end query all

Expand Down
5 changes: 3 additions & 2 deletions docs/query-builder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,9 @@ Contains All Fields Example
~~~~~~~~~~~~~~~~~~~~~~~~~~~

The following example shows how to use the ``all`` query
operator with the ``where()`` query builder method to match
documents that contain all the specified fields:
operator with the ``where()`` query builder method to match documents in the
``movies`` collection where the array stored in the ``genres`` field contains
all the elements in the query array:

.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
:language: php
Expand Down
Loading