set default prefix

This commit is contained in:
Holger Reinhardt 2016-07-30 01:49:45 +02:00
parent 6f941a12cf
commit cff14e320f
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,6 @@ return [
|
*/
'prefix' => env('RESQUE_PREFIX', null),
'prefix' => env('RESQUE_PREFIX', 'resque'),
];

View File

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