title: NOAUTH Authentication required. Laravel + Redis
body: <p>I am getting error <strong>NOAUTH Authentication required</strong>.
  My laravel version is 5.3 and I am using predis 1.1.1 to connect redis.</p>
  
  <p>in etc/redis/redis.conf I have:</p>
  
  <pre><code>bind 127.0.0.1
  requirepass somepassword
  </code></pre>
  
  <p>in .env file I have </p>
  
  <pre><code>REDIS_HOST=127.0.0.1
  REDIS_PASSWORD=somepassword
  REDIS_PORT=6379
  </code></pre>
  
  <p>in config/database.php I have:</p>
  
  <pre><code>'redis' =&gt; [
  
          'cluster' =&gt; false,
  
          'default' =&gt; [
              'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
              'password' =&gt; env('REDIS_PASSWORD', null),
              'port' =&gt; env('REDIS_PORT', 6379),
              'database' =&gt; 0,
          ],
  </code></pre>
  
  <p>I am connecting redis via:</p>
  
  <pre><code>self::$_db = \Redis::connection('default');
  </code></pre>
  
  <p>and using it like: </p>
  
  <pre><code>self::$_db-&gt;pipeline(function ($pipe) use ($profile, $time,$type, $id) {
              $pipe-&gt;zadd(self::getProfileKey($profile, $type), $time, $id);
              $pipe-&gt;zadd(self::getProfileKey($profile), $time, $type . ':' . $id);
              $pipe-&gt;zadd(self::getModelKey($type,$id) . '::favoritedBy', $time, $profile-&gt;profile_id);
          });
  </code></pre>
  
  <p>So, when I comment out <code>requirepass</code> and send password as null it works but it does not work and throw error <code>NOAUTH Authentication required.</code> when the password is in place. I need to have password in place as per my project requirement. Please help. Thanks in advance.</p>