title: Class 'Redis' not found in Lumen
body: <ul>
  <li>Lumen Version: 6.0</li>
  <li>PHP Version: 7.2</li>
  <li>Database Driver &amp; Version: MySql 5.7, Redis</li>
  </ul>
  
  <p><img src="https://user-images.githubusercontent.com/17666778/71300436-c25d3900-23ba-11ea-8ecb-27a80b6efaf2.png" alt="image"></p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>use Illuminate\Support\Facades\Redis;
  
  Redis::set($key, $data, 'EX', $expiry);
  </code></pre>
  
  <p><strong>in app.php</strong></p>
  
  <pre><code>$app-&gt;withFacades();
  $app-&gt;withEloquent();
  
  $app-&gt;register(Illuminate\Redis\RedisServiceProvider::class);
  
  $app-&gt;configure('database');
  </code></pre>
  
  <p>Using the above code gives <strong>Class 'Redis' not found</strong> error. This error occurs only when the below packages are installed.</p>
  
  <pre><code>"illuminate/redis": "^6.5",
  "illuminate/mail": "^6.5",
  "laravel/lumen-framework": "^6.0",
  </code></pre>
  
  <p>With below packages which has lower versions it works without any error/issues.</p>
  
  <pre><code>"laravel/lumen-framework": "^5.8.*",
  "illuminate/redis": "^5.8",
  "illuminate/mail": "^5.8",
  </code></pre>
  
  <p>So why is it giving error when packages are upgraded.</p>