diff --git a/src/ResqueServiceProvider.php b/src/ResqueServiceProvider.php index 81a1fb1..50db87c 100644 --- a/src/ResqueServiceProvider.php +++ b/src/ResqueServiceProvider.php @@ -34,7 +34,8 @@ class ResqueServiceProvider extends ServiceProvider protected function registerResque() { $this->app->singleton('resque', function () { - return new Resque(); + $prefix = $connection = $this->app['config']['resque.prefix']; + return (new Resque())->setPrefix($prefix); }); }