title: QrCode not showing
body: <p>When I'm doing a project about showing QrCode thru Database, I'm calling it perfectly without any error but the Qrcode not showing. I'm new about laravel.</p>
  <p>I put my codes in controller like this:</p>
  <pre><code>if($request-&gt;ajax()) {
   $query = $request -&gt;get('query');
  
    if($query != '') {
       $data = NewModel::where('id_no', '=', $query)
     -&gt;select('reg_code as reg_code',
      DB::RAW(&quot;CONCAT('fname,' ',mname,' ',lname,' ',reg_code)as qr&quot;))
     -&gt;first();
  
     if(count((array)$data) &gt; 0) {
        \QrCode::generate($data-&gt;qr);
     echo json_encode($data)
       }
     }
  }
  </code></pre>
  <p>model:</p>
  <pre><code>{
     protected $connection = 'name_db';
     protected $table = 'table_name';
  }
  </code></pre>
  <p>in my blade.php:</p>
  <pre><code>&lt;span id=&quot;qrcode&quot;&gt;&lt;/span&gt;
  </code></pre>
  <p>I use <code>id=&quot;qrcode&quot;</code> for print function. I already tried</p>
  <pre><code>{!! base64_encode(QrCode::format('svg')-&gt;size(200)-&gt;generate('$data-&gt;qr')) !!}
  </code></pre>
  <p>I'm using latest scripts/css links.</p>