title: Laravel DOMPDF cannot read absolute image path
body: <p>I am using <a href="https://github.com/barryvdh/laravel-dompdf" rel="nofollow noreferrer">https://github.com/barryvdh/laravel-dompdf</a> package for Laravel 5.5 to generate PDF. One thing I cannot get pass is rendering the image in PDF using Laravel's helper function such as e.g. asset(), url() etc. I am using the function because I have had bad experiences when the web is hosted not using the helper functions, or you might say using relative source for the image.</p>
  
  <p>For example my code looks like this in <strong>template-pdf.blade.php</strong> :</p>
  
  <pre><code>&lt;p&gt;&lt;img src="storage/photos/9/pdm SIM_AKADEMIK.png" alt="" /&gt;&lt;/p&gt;
  </code></pre>
  
  <p>It works. The image shows in the PDF. The image location is in the public folder of Laravel. But if I used </p>
  
  <pre><code>&lt;p&gt;&lt;img src="{{asset('storage/photos/9/pdm SIM_AKADEMIK.png')}}" alt="" /&gt;&lt;/p&gt;
  </code></pre>
  
  <p>The image shows up in the browser, but once it's generated to PDF, it takes forever with an error message</p>
  
  <blockquote>
    <p>PHP Fatal error: Maximum execution time of 60 seconds exceeded</p>
  </blockquote>
  
  <p>That is only for 1 picture. No I don't want to increase my execution time settings.</p>
  
  <p>What is the workaround?</p>
  
  <p>Yes I do have enable_remote enabled</p>