redis = new \Redis(); $this->redis->connect(env('REDIS_HOST'),env('REDIS_PORT')); $this->redis->auth(env('REDIS_PASSWORD')); return $this->redis; } }