title: How to save generated qr Code in laravel?
body: <p>I have generated QR code using "simplesoftwareio/simple-qrcode": <a href="https://github.com/SimpleSoftwareIO/simple-qrcode" rel="nofollow noreferrer">https://github.com/SimpleSoftwareIO/simple-qrcode</a></p>
  
  <p>Now I want to save the generated image in my local drive. How can I do it?</p>
  
  <pre><code> public function qr($id)
  {
  
      $data = Ticket::get()-&gt;find($id);
      $image = \QrCode::format('png')
                       -&gt;merge('img/t.jpg', 0.1, true)
                       -&gt;size(200)-&gt;errorCorrection('H')
                       -&gt;generate('A simple example of QR code!');
      return response($image)-&gt;header('Content-type','image/png');
  
      return view('qrCode', compact('qrData', $qrData));
  }
  </code></pre>