Skip to content
Draft
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions config/scout.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@

'queue' => env('SCOUT_QUEUE', false),

'queue_connection' => env('SCOUT_QUEUE_CONNECTION'),

'queue_name' => env('SCOUT_QUEUE_NAME'),

/*
|--------------------------------------------------------------------------
| Database Transactions
Expand Down
2 changes: 1 addition & 1 deletion src/Console/QueueImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class QueueImportCommand extends Command
{--min= : The minimum ID to start queuing from}
{--max= : The maximum ID to queue up to}
{--c|chunk= : The number of records to queue in a single job (Defaults to configuration value: `scout.chunk.searchable`)}
{--queue= : The queue that should be used (Defaults to configuration value: `scout.queue.queue`)}';
{--queue= : The queue that should be used (Defaults to configuration value: `scout.queue_name`)}';

/**
* The console command description.
Expand Down
4 changes: 2 additions & 2 deletions src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public function searchableUsing()
*/
public function syncWithSearchUsing()
{
return config('scout.queue.connection') ?: config('queue.default');
return config('scout.queue_connection') ?: config('queue.default');
}

/**
Expand All @@ -423,7 +423,7 @@ public function syncWithSearchUsing()
*/
public function syncWithSearchUsingQueue()
{
return config('scout.queue.queue');
return config('scout.queue_name');
}

/**
Expand Down