0

我正在将 Scout 与 Meil​​isearch 一起使用。我想冲洗我的一个模型。

php artisan scout:flush "App\Comment"

返回

All [App\Comment] records have been flushed.

但是,在查看 meilisearch 时,该表的记录仍然存在。

我认为这是因为我手动删除了数据库中表的所有记录。

4

1 回答 1

0

试试这个Comment::removeAllFromSearch(); 然后再次缓存你的数据php artisan scout:flush "App\Comment"

于 2021-10-27T15:58:32.043 回答