title: Display ID within QR Code
body: <p>I'm trying to get the current <code>survey id</code> to show within my QR code, however it's only displaying </p>
  
  <pre><code>$survey-&gt;id
  </code></pre>
  
  <p>I'm sure there is something simple I'm missing (first laravel project). Any help would be appreciated.</p>
  
  <p>Reference <a href="https://www.simplesoftware.io/docs/simple-qrcode" rel="nofollow noreferrer">simple software QR</a> </p>
  
  <p>View </p>
  
  <pre><code>&lt;img src="data:image/png;base64, {!! base64_encode(QrCode::format('png')-&gt;size(200)-&gt;generate('localhost:8000/survey/view/$survey-&gt;id')) !!} "&gt;
  </code></pre>