How to Trigger Indexing in Laravel Scout?
The way to trigger is to call the "searchable()" method at the end of the eloquent query and it will index all the records.
<?php Post::all()->serachable();
<?php $post = Post:first(); $post->comments()->searchable();
Leave a reply