Skip to content

Commit fddaff4

Browse files
[11.x] Documents removeAllFromSearch method (#9676)
* documents removeAllFromSearch method * Update scout.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 0638b00 commit fddaff4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scout.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ Or, if you already have a collection of Eloquent models in memory, you may call
595595

596596
$orders->unsearchable();
597597

598+
To remove all of the model records from their corresponding index, you may invoke the `removeAllFromSearch` method:
599+
600+
Order::removeAllFromSearch();
601+
598602
<a name="pausing-indexing"></a>
599603
### Pausing Indexing
600604

0 commit comments

Comments
 (0)