We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24e4f02 commit e453a1eCopy full SHA for e453a1e
src/LaravelDebugbar.php
@@ -878,7 +878,11 @@ protected function selectStorage(DebugBar $debugbar)
878
break;
879
case 'redis':
880
$connection = $config->get('debugbar.storage.connection');
881
- $storage = new RedisStorage($this->app['redis']->connection($connection));
+ $client = $this->app['redis']->connection($connection);
882
+ if (is_a($client, 'Illuminate\Redis\Connections\PredisConnection', false)) {
883
+ $client = $client->client();
884
+ }
885
+ $storage = new RedisStorage($client);
886
887
case 'custom':
888
$class = $config->get('debugbar.storage.provider');
0 commit comments