Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Console/SyncIndexSettingsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SyncIndexSettingsCommand extends Command
*
* @var string
*/
protected $signature = 'scout:sync-index-settings';
protected $signature = 'scout:sync-index-settings {--driver= : The name of the search engine driver (Defaults to configuration value: `scout.driver`)}';

/**
* The console command description.
Expand All @@ -35,9 +35,9 @@ class SyncIndexSettingsCommand extends Command
*/
public function handle(EngineManager $manager)
{
$engine = $manager->engine();
$driver = $this->option('driver') ?: config('scout.driver');

$driver = config('scout.driver');
$engine = $manager->engine($driver);

if (! $engine instanceof UpdatesIndexSettings) {
return $this->error('The "'.$driver.'" engine does not support updating index settings.');
Expand Down