title: How to print an image with DomPDF in laravel?
body: <p>I am making a pdf, for which I use the library: <strong>barryvdh/laravel-dompdf</strong>, in the pdf I try to print an image, with which when I open the recently downloaded file, all the data is printed except the image, <strong>I clarify this image if it is displayed correctly in my show.blade view</strong>, I cannot find a solution for this problem.
  Below I detail how I am proceeding:</p>
  <p>Controller: (fragment of store method and exportPdf method)</p>
  <pre><code>    public function store(SaveDocumentRequest $request)
      {
      if ($request-&gt;hasFile('photo')) {               
  
          $file = $request-&gt;file('photo');
          $name = time().$file-&gt;getClientOriginalName();
          $file-&gt;move(public_path().'/images/', $name);   
      }else{
            $name = null; 
      }  
     $document-&gt;photo  = $name;
  </code></pre>
  <pre><code>    public function exportPdf()
      {
          $movie = Movies::with('document.creator', 'actors', 'generate_movie', 'document.adequacy', 'document.lenguage')-&gt;first();
  
          $pdf = PDF::loadView('admin.movies.show', compact('movie'));  
         
          return $pdf-&gt;download('cine.pdf');
      }
  </code></pre>
  <p>My show.blade file:</p>
  <pre><code>&lt;div class=&quot;col-md-6&quot;&gt;    
          &lt;div class=&quot;box box-primary&quot;&gt;
              &lt;div class=&quot;box-header with-border&quot;&gt;
                &lt;h3 class=&quot;box-title&quot;&gt;Imagen de Portada &lt;/h3&gt;
              &lt;/div&gt;        
              &lt;div class=&quot;box-body box-profile&quot;&gt;                                          
                  &lt;img class=&quot;img-responsive&quot; src=&quot;{{ asset('/images/'.$movie-&gt;document-&gt;photo) }}&quot;  alt=&quot;{{ $movie-&gt;document-&gt;title }}&quot; &gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;  
  </code></pre>
  <p><strong>This way I am accessing the image that if it is displayed correctly in my show.blade file, but it is not displayed in the downloaded pdf.</strong></p>
  <p><strong>I clarify I do not receive any type of error and the image is stored in the public folder of the project.</strong></p>
  <p>Could you guide me to find the solution?</p>