title: Laravel 5: Removing caches from code not working
body: <p>We have implemented a "make:theme" command and we want to flush the cache after the theme is installed. In Command.php, caches are tried to be removed with</p>
  
  <pre><code>Cache::forget('key');
  Cache::flush();
  </code></pre>
  
  <p>When refreshing the page in browser, we still get the old cache.</p>
  
  <p>However, when we call "Cache:flush();" method in a controller, IT WORKS!!</p>
  
  <p>Shouldn't cache be removed from code the same as they are when "config:cache: command is called?</p>
  
  <p>Thanks in advance,
  Faton</p>