title: Load blade view file from cache in Laravel
body: <p>I'm trying to store a whole blade view with param in cache for first load and load it from cache in next time reload.</p>
  <p>Here is what I did:</p>
  <pre><code>public function cacheAction()
  {
      $data = $this-&gt;model-&gt;getContent();
      Cache::remember('cache-view', 1800, function() {
          dd('load from cache!');
          return view('index')-&gt;render();
      });
      dd('not load from cache!');
      return view('index', ['data' =&gt; $data]);
      
  }
  </code></pre>
  <p>I added 2 lines debug notice when load page. But when I access page, it always show &quot;not loaded from cache!&quot; for anytime.</p>
  <p>How I can fix this?</p>
  <p>Thank you very much!</p>