title: view('bladeFile', $data)->render() keeps returning error that render() method does not exist
body: <pre><code>&quot;Call to undefined method Illuminate\\View\\Engines\\CompilerEngine::render() (View: \/home\/vagrant\/code\/resources\/views\/order\/invoice.blade.php)&quot;,
  </code></pre>
  <p>I am trying to get the html code from my view into a variable to later use it, but it keeps giving me an error that render() method is undefined. When I remove the variables within the view an leave only html it works fine. This is how I try to call it:</p>
  <pre><code>$content = view('order.invoice', ['order' =&gt; $order])-&gt;render();
  </code></pre>