Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 181bfbf

Browse files
committed
Added description of the buildPayload method to the README file.
1 parent c93124b commit 181bfbf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,4 +400,13 @@ There are two methods that can help you to analyze results of a search query:
400400
->profile();
401401
```
402402

403-
Both methods return raw data from ES.
403+
Both methods return raw data from ES.
404+
405+
Besides, you can get a query payload that will be sent to ES, by calling the `buildPayload` method.
406+
407+
```php
408+
App\MyModel::search('Brazil')
409+
->buildPayload();
410+
```
411+
412+
Note, that this method returns a collection of payloads, because of possibility of using multiple search rules in one query.

0 commit comments

Comments
 (0)