From 7905dd3926f88a2fa1a8a00fe483efa431d42efd Mon Sep 17 00:00:00 2001 From: ApolloPY Date: Fri, 30 Nov 2018 20:30:51 +0800 Subject: [PATCH] if aliases not Redis, don't skip --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index f497b6b..e3d5cf1 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -198,7 +198,7 @@ class Generator // Get all aliases foreach ($this->getAliases() as $name => $facade) { // Skip the Redis facade, if not available (otherwise Fatal PHP Error) - if ($facade == 'Illuminate\Support\Facades\Redis' && !class_exists('Predis\Client')) { + if ($facade == 'Illuminate\Support\Facades\Redis' && $name == 'Redis' && !class_exists('Predis\Client')) { continue; }