title: Generate PDF with image from database with mPDF Laravel
body: <p>I have an issue with a view and generated content to produce a PDF.At the moment, I've been working with mpdf\mpdf , but when i want to show the image on the view , error occurs .</p>
  <p>My controller :</p>
  <pre><code>$view = View::share('data', $data);
  $mpdf= new \Mpdf\Mpdf([
              'mode'=&gt;'UTF-8','format' =&gt; [400, 400],'autoScriptToLang'=&gt;true,'autoLangToFont'=&gt;true
  ]);
  $mpdf-&gt;WriteHTML(view('frontend.create-cv.pdf',compact('data')));
  </code></pre>
  <p>My blade :</p>
  <pre><code>&lt;img src=&quot;/frontend/assets/images/cv/{{$data['seeker']-&gt;image}}&quot;&gt;
  </code></pre>