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'); }); }