title: Laravel 4 : Call to undefined method Redis::connection()
body: <p>I'm going crazy about this error.
  I've got a vagrant VM with Debian 7, generated with Puphpet, installation was fine.</p>
  
  <h2>1. Redis is installed and working</h2>
  
  <p><code>redis-server</code> is running :</p>
  
  <p><img src="https://i.stack.imgur.com/Xh7jc.png" alt="redis-server running"></p>
  
  <p>I can use the server on <code>127.0.0.1:6379</code> :</p>
  
  <p><img src="https://i.stack.imgur.com/H7IN4.png" alt="enter image description here"></p>
  
  <h2>2. php5-redis is installed</h2>
  
  <p><code>php5-redis</code> is actually installed : </p>
  
  <p><img src="https://i.stack.imgur.com/yMzrn.png" alt="enter image description here"></p>
  
  <h2>3. Laravel Redis config is set</h2>
  
  <p>Here is my redis config file in <code>app/local/database.php</code> :</p>
  
  <pre><code>'redis' =&gt; [
  
      'cluster' =&gt; false,
  
      'default' =&gt; [
      'host'     =&gt; '127.0.0.1',
      'port'     =&gt; 6379,
      'database' =&gt; 0,
      ],
  ],
  </code></pre>
  
  <h2>4. The call to Redis is simple :</h2>
  
  <pre><code>// Get redis
  $redis = Redis::connection();
  </code></pre>
  
  <h2>5. I tried a lot of things</h2>
  
  <pre><code>sudo service nginx reload
  sudo service redis-server force-reload
  composer dumpautoload
  </code></pre>
  
  <p>But nothing solved the error.</p>
  
  <hr>
  
  <p>I'm still having :</p>
  
  <pre><code>ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Redis::connection()' in /var/www/fd/app/menus/admin.menu.php:16
  </code></pre>
  
  <p>(line 16 is where I do the connection <code>$redis = Redis::connection();</code>)</p>
  
  <p>Where am I wrong ?</p>
  
  <p>Btw, I hate mondays >.></p>