tarre/laravel-scout-refresh

Flush and import all models with the "Searchable" trait

1.0.5 2023-09-24 12:15 UTC

This package is auto-updated.

Last update: 2024-10-15 22:50:55 UTC


README

Refresh all your models containing the searchable trait

Installation

1. Install with composer

composer require tarre/laravel-scout-refresh

2. Add class to App\Console\Kernel.php

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

Usage

php artisan scout:refresh-all