From dcda06f521d8eb23e6df4b3d146b5e7f1663079c Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 23 Nov 2021 19:43:42 +0000 Subject: [PATCH] Fix bus service provider when loaded outside of the framework (#39740) --- src/Illuminate/Bus/BusServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Bus/BusServiceProvider.php b/src/Illuminate/Bus/BusServiceProvider.php index 6f3da09d10b4..ff3eef81b6c5 100644 --- a/src/Illuminate/Bus/BusServiceProvider.php +++ b/src/Illuminate/Bus/BusServiceProvider.php @@ -46,8 +46,8 @@ protected function registerBatchServices() $this->app->singleton(DatabaseBatchRepository::class, function ($app) { return new DatabaseBatchRepository( $app->make(BatchFactory::class), - $app->make('db')->connection(config('queue.batching.database')), - config('queue.batching.table', 'job_batches') + $app->make('db')->connection($app->config->get('queue.batching.database')), + $app->config->get('queue.batching.table', 'job_batches') ); }); }