title: Laravel : Redis No connection could be made : [tcp://127.0.0.1:6379]
body: <p>I have installed redis with laravel by adding <code>"predis/predis":"~1.0"</code>,</p>
  
  <p>Then for testing i added the following code :</p>
  
  <pre><code>public function showRedis($id = 1)
     {
        $user = Redis::get('user:profile:'.$id);
        Xdd($user);
     } 
  </code></pre>
  
  <p>In app/config/database.php i have :</p>
  
  <pre><code>'redis' =&gt; [
          'cluster' =&gt; false,
          'default' =&gt; [
              'host' =&gt; env('REDIS_HOST', 'localhost'),
              'password' =&gt; env('REDIS_PASSWORD', null),
              'port' =&gt; env('REDIS_PORT', 6379),
              'database' =&gt; 0,
          ],
  
      ],
  </code></pre>
  
  <p>It throws the following error : <code>No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379]</code></p>
  
  <p>I using <code>virtualhost</code> for the project.
  Using <code>Xampp with windows</code>.</p>