Hello for those who are using barryvdh\dompdf laravel. I have a problem with the image of the PDF that I am sending in email. My issue is that the image background would not show and it would say that Image not found or type unknown. It just occurs this week as in the past it is working fine. I test in my local and the image background is showing while in the server it is not showing.
epermit.blade.php
<img class="mx-auto" src="{{ asset('/images/permit.jpg') }}"> In my controller
$pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true]) ->loadView('epermitpdf', compact('permit', 'student')); Storage::put('public/pdf/epermit.pdf', $pdf->output()); in mailable laravel
return $this->markdown('permit-markdown')->attach(Storage::disk('public')->path('pdf/epermit.pdf')); I try exchanging another pathname in src such as <img class="mx-auto" src="www.domain.com\permit"> as I try to put in a server to have easy access. It works for a while but after it would say again Image not found or type unknown.
Storage::disk('local')->put('public/pdf/epermit.pdf', $pdf->output());