mirror of
https://github.com/idanoo/laravel-resque.git
synced 2025-06-30 18:42:15 +00:00
prefix settable
This commit is contained in:
parent
9e7b3a658e
commit
0519a18b38
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue