title: How to create download link for qr code image in Laravel?
body: <p>I am using Laravel 5.2 and <strong><a href="https://www.simplesoftware.io/docs/simple-qrcode" rel="nofollow noreferrer">Simple QR code</a></strong> library for creating QR code. It works fine. Now i want to download generated QR code. Inspect element shows: <a href="https://i.stack.imgur.com/5sXxM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5sXxM.jpg" alt="This"></a> I can save this image, <em>right click on image>save image</em>. But i want to make a link so that i can download this image with clicking download link button. Same as: <strong><a href="https://www.qrcode-monkey.com/" rel="nofollow noreferrer">this</a></strong></p>
  
  <p>mycode for creating qr code:</p>
  
  <pre><code>&lt;div class="text-center"&gt;
      &lt;img src="data:image/png;base64, {!! base64_encode(QrCode::format('png')-&gt;size(100)-&gt;generate('helloworld')) !!} "&gt;
      &lt;p&gt;Scan me to return to the original page.&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Output of QR code: 
  <a href="https://i.stack.imgur.com/Uh63h.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uh63h.jpg" alt="enter image description here"></a></p>
  
  <p>Is there anyone who can help me regarding this issue? Thanks in advance.</p>