mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
18 lines
412 B
PHP
18 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Testing;
|
|
|
|
trait ScoutFlush
|
|
{
|
|
protected array $searchIndexModelCleanupList = [
|
|
"App\\Anime", "App\\Manga", "App\\Character", "App\\GenreAnime", "App\\GenreManga", "App\\Person"
|
|
];
|
|
|
|
public function runScoutFlush(): void
|
|
{
|
|
foreach ($this->searchIndexModelCleanupList as $model) {
|
|
$this->artisan("scout:flush", ["model" => $model]);
|
|
}
|
|
}
|
|
}
|