tarre/laravel-scout-refresh

清除并导入所有具有 "Searchable" 特性的模型

1.0.5 2023-09-24 12:15 UTC

This package is auto-updated.

Last update: 2024-09-15 22:43:42 UTC


README

刷新包含 searchable 特性的所有模型

安装

1. 使用 composer 安装

composer require tarre/laravel-scout-refresh

2. 将类添加到 App\Console\Kernel.php

protected $commands = [
    \Tarre\LaravelScoutRefresh\Console\ScoutRefreshAllCommand::class
];

使用

php artisan scout:refresh-all