title: Save PDF file with Dompdf
body: <p>using Dompdf to store data in pdf file:</p>
  
  <p>This function work fine :</p>
  
  <pre><code>$pdf = \App::make('dompdf.wrapper');
  $pdf-&gt;loadHTML('&lt;h1&gt;Test&lt;/h1&gt; ');
  return $pdf-&gt;stream();
  </code></pre>
  
  <p>Now,when try</p>
  
  <pre><code>$pdf = \App::make('dompdf.wrapper');
  $pdf-&gt;loadHTML('&lt;h1&gt;Test&lt;/h1&gt; ');
  file_put_contents("test.pdf", $pdf-&gt;output());
  </code></pre>
  
  <p>Get error:</p>
  
  <pre><code>file_put_contents(test.pdf): failed to open stream: Permission denied
  </code></pre>
  
  <p>Do I need to create some extra folder for saving file or something ?</p>
  
  <p>Tnx, P</p>