title: Laravel 5 dd and return statements showing different results
body: <pre><code> public function getStoreData()
      {
          $page = $this-&gt;request-&gt;page ? $this-&gt;request-&gt;page : 1;
          $page_size = $this-&gt;request-&gt;page_size ? $this-&gt;request-&gt;page_size : 2;
  
          $storeData = Cache::get('single_store_response');
  
          return response()-&gt;json($storeData);
      }
  </code></pre>
  <p>When I  <code>dd($storeData)</code> I get accurate results when I make the api call, but when I return <code>response()-&gt;json($storeData)</code>, my result data brings something different.
  How can I solve this issue and what's causing it?</p>
  <p>OUT PUT EXAMPLE</p>
  <blockquote>
  <blockquote>
  <p>dd($storeData) returns <code>['a','b','c']</code> which is a current data, but return response()-&gt;json($storeData) returns <code>['x','y','z']</code> which is an old data</p>
  </blockquote>
  </blockquote>