One way to solve this problem is to overwrite the default Laravel class Illuminate\Cache\CacheManager and change the ioc binding
class MyCacheManager extends Illuminate\Cache\CacheManager { protected function createRedisDriver(array $config) { try { return parent::createRedisDriver($config); } catch (\Exception $e) {
In some ServiceProvider
$this->app->singleton('cache', function($app) { return new MyCacheManager($app); });
This solution will also support the Cache facade :)
source share