title: domPDF how to save a file without viewing ? LARAVEL
body: <p>Below is my current code I want to store the pdf inmy files without view it . is it possible ? when user store the data for $bus object on db. I want to store below pdf on my local.</p>
  
  <pre><code> $user = Festivals::where('id', $bus-&gt;id)-&gt;first();
          $pdf = PDF::loadView('user.view', compact('user'));
          $name = 'Ref_no' . $user-&gt;ref_no . '_' . date('m-d-Y') . '.pdf';
        return $pdf-&gt;download($name);
  </code></pre>