We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3703c0 commit a3d4cc7Copy full SHA for a3d4cc7
src/SearchableScope.php
@@ -57,9 +57,9 @@ public function extend(EloquentBuilder $builder)
57
58
HasManyThrough::macro('unsearchable', function ($chunk = null) {
59
$this->chunkById($chunk ?: config('scout.chunk.searchable', 500), function ($models) {
60
- $models->filter->shouldBeSearchable()->searchable();
+ $models->unsearchable();
61
62
- event(new ModelsImported($models));
+ event(new ModelsFlushed($models));
63
});
64
65
}
0 commit comments