mirror of
https://github.com/idanoo/laravel-resque.git
synced 2025-07-01 19:12:15 +00:00
set default prefix
This commit is contained in:
parent
6f941a12cf
commit
cff14e320f
2 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
$this->app->singleton(Resque::class, function () {
|
||||||
$prefix = $this->app['config']['resque.prefix'];
|
$prefix = $this->app['config']['resque.prefix'];
|
||||||
return (new Resque())->setPrefix($prefix);
|
return (new Resque())->setPrefix($prefix ?: 'resque');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue