3

I'm using Scout with Meilisearch. I want to flush one of my models.

php artisan scout:flush "App\Comment"

returns

All [App\Comment] records have been flushed.

However, when checking out meilisearch, the records for this table are still there.

I think this happened because I manually deleted all records for the table in my database manually.

Felix
  • 2,532
  • 5
  • 37
  • 75

1 Answers1

0

Try this Comment::removeAllFromSearch(); Then cache your data again with php artisan scout:flush "App\Comment"