Skip to content

Commit 8eb2af5

Browse files
authored
Merge pull request barryvdh#593 from SeanKnight/laravel54-redisstorage
Fix RedisStorage for Laravel 5.4
2 parents 24e4f02 + e453a1e commit 8eb2af5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LaravelDebugbar.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,11 @@ protected function selectStorage(DebugBar $debugbar)
878878
break;
879879
case 'redis':
880880
$connection = $config->get('debugbar.storage.connection');
881-
$storage = new RedisStorage($this->app['redis']->connection($connection));
881+
$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);
882886
break;
883887
case 'custom':
884888
$class = $config->get('debugbar.storage.provider');

0 commit comments

Comments
 (0)