Skip to content

Commit e6bb5b1

Browse files
committed
refactor: use classname when calling other commands
1 parent 91b901a commit e6bb5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/ElasticsearchRefreshIndex.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class ElasticsearchRefreshIndex extends Command
1616

1717
public function handle(): int
1818
{
19-
$this->call('elastic:delete-index');
20-
$this->call('elastic:create-index');
19+
$this->call(ElasticsearchDeleteIndex::class);
20+
$this->call(ElasticsearchCreateIndex::class);
2121

2222
/** @var class-string<\Illuminate\Database\Eloquent\Model>[] $models */
2323
$models = config('elasticsearch.models');

0 commit comments

Comments
 (0)