title: saving generated pdf in public file using Barryvdh\Snappy package
body: <p>I tried to save the generated pdf in public folder using laravel 5.2 but it is not working, below is my code:</p>
  
  <pre><code>$path = base_path('public/uploads/files/');
  $pdf_name = time().'.pdf';
  PDF::loadView('pdf.pdf', [ 'data' =&gt; $data ])-&gt;save($path.$pdf_name);
  </code></pre>
  
  <p>This is the error I got:</p>
  
  <blockquote>
    <p>FatalErrorException in WindowsPipes.php line 137:
    Maximum execution time of 60 seconds exceeded</p>
  </blockquote>