diff --git a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php index 62c4ed126287..e70be1019ef9 100644 --- a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php +++ b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php @@ -84,7 +84,11 @@ protected function createClient(array $config) $this->establishConnection($client, $config); if (! empty($config['password'])) { - $client->auth($config['password']); + if (isset($config['username']) && is_string($config['password'])) { + $client->auth([$config['username'], $config['password']]); + } else { + $client->auth($config['password']); + } } if (isset($config['database'])) {