title: How can I clear the cache in laravel using command line?
body: <p>I am using <code>Redis</code> to cache queries/routes in Laravel 5.2. </p>
  
  <p>I have 3 environments running on the same web server i.e "production", "staging", and "development." </p>
  
  <p>For each environment I set a different cache <code>prefix</code> value to allow me to link the cache to different environment. </p>
  
  <p>In the <code>config/cache.php</code> file I changed the line</p>
  
  <pre><code>'prefix' =&gt; 'laravel',
  </code></pre>
  
  <p>To</p>
  
  <pre><code>'prefix' =&gt; ENV('CACHE_PREFIX', 'laravel'),
  </code></pre>
  
  <p>Then in my <code>.env</code> file, I added the prefix for each environment like this</p>
  
  <p>For Dev</p>
  
  <pre><code>CACHE_PREFIX="LaravelDev"
  </code></pre>
  
  <p>For Staging</p>
  
  <pre><code>CACHE_PREFIX="LaravelStaging"
  </code></pre>
  
  <p>For Production </p>
  
  <pre><code>CACHE_PREFIX="LaravelProduction"
  </code></pre>
  
  <p>I know I can clear the cache from the command line like this</p>
  
  <pre><code>php artisan cache:clear
  </code></pre>
  
  <p>But the code above will clear the cache for all of my environments. </p>
  
  <p>I only want to clear the cache for "LaravelDev" only and leave alone "LaravelStaging" and "LaravelProduction"</p>
  
  <p>How can I clear the cache for a specific environment?</p>