Skip to content

Commit 8baa576

Browse files
authored
Clarifies builder on makeAllSearchableUsing (#8562)
1 parent dd7bbe1 commit 8baa576

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scout.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ php artisan scout:flush "App\Models\Post"
395395

396396
If you would like to modify the query that is used to retrieve all of your models for batch importing, you may define a `makeAllSearchableUsing` method on your model. This is a great place to add any eager relationship loading that may be necessary before importing your models:
397397

398+
use Illuminate\Database\Eloquent\Builder;
399+
398400
/**
399401
* Modify the query used to retrieve models when making all of the models searchable.
400402
*/

0 commit comments

Comments
 (0)