diff --git a/docs/includes/query-builder/QueryBuilderTest.php b/docs/includes/query-builder/QueryBuilderTest.php index 574fe060f..bd62466d5 100644 --- a/docs/includes/query-builder/QueryBuilderTest.php +++ b/docs/includes/query-builder/QueryBuilderTest.php @@ -351,7 +351,7 @@ public function testAll(): void { // begin query all $result = DB::table('movies') - ->where('movies', 'all', ['title', 'rated', 'imdb.rating']) + ->where('cast', 'all', ['Meg Ryan', 'Tom Hanks']) ->get(); // end query all diff --git a/docs/query-builder.txt b/docs/query-builder.txt index c641323dc..c77317516 100644 --- a/docs/query-builder.txt +++ b/docs/query-builder.txt @@ -869,7 +869,8 @@ 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: +documents that have a ``cast`` field containing all the specified +array values: .. literalinclude:: /includes/query-builder/QueryBuilderTest.php :language: php