lumen-horizon
lumen-horizon copied to clipboard
Redis connection [default] has not been configured.
I got this error after adding it on my boostrap/app.php
$app->register(Laravel\Horizon\HorizonServiceProvider::class);
Redis connection [default] has not been configured. In Horizon.php line 91
I tried adding it on my config/app.php but no commands for horizon are registered.
manage to fix this by adding $app->configure('database'); for some unknown reason config for database is returning null but adding that code above fixed it
I am encountering the same issue.
@Kreshnik have you solved the issue in the same way as @codeitlikemiley did?
I can add a note into thre readme file, if so.
@servocoder I fixed the issue by changing the config/database.php config to
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
I was using an older config schema for Redis.
Ok, thanks for your feedback