From cff14e320f29a833f0f556f2fba062cd6406d24b Mon Sep 17 00:00:00 2001 From: Holger Reinhardt Date: Sat, 30 Jul 2016 01:49:45 +0200 Subject: [PATCH] set default prefix --- config/resque.php | 2 +- src/ResqueServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/resque.php b/config/resque.php index 926755d..76bd51a 100644 --- a/config/resque.php +++ b/config/resque.php @@ -22,6 +22,6 @@ return [ | */ - 'prefix' => env('RESQUE_PREFIX', null), + 'prefix' => env('RESQUE_PREFIX', 'resque'), ]; diff --git a/src/ResqueServiceProvider.php b/src/ResqueServiceProvider.php index 72c97f1..16ae019 100644 --- a/src/ResqueServiceProvider.php +++ b/src/ResqueServiceProvider.php @@ -34,7 +34,7 @@ class ResqueServiceProvider extends ServiceProvider { $this->app->singleton(Resque::class, function () { $prefix = $this->app['config']['resque.prefix']; - return (new Resque())->setPrefix($prefix); + return (new Resque())->setPrefix($prefix ?: 'resque'); }); }