mirror of
https://github.com/idanoo/laravel-resque.git
synced 2024-11-21 08:01:59 +00:00
set default prefix
This commit is contained in:
parent
6f941a12cf
commit
cff14e320f
@ -22,6 +22,6 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('RESQUE_PREFIX', null),
|
||||
'prefix' => env('RESQUE_PREFIX', 'resque'),
|
||||
|
||||
];
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user