Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

theUnforgiven's avatar

Cashier 7.0, DOMPDF image rendering issue

Hi all,

I'm trying to render an image on a Cashier downloaded PDF using: <img src="{{ url('/images/logo.png') }}"> but this happening:

Just by using the route to generate this:

Route::get('user/invoice/{invoice}', function (Request $request, $invoiceId) {
    return $request->user()->downloadInvoice($invoiceId, [
        'product' => 'Monthly Subscription',
    ]);
});

Also tried public_path() but to no avail....

Anyone else encountered this problem and how do you overcome it?

Thanks in advance.

0 likes
1 reply
Mikoop's avatar

Any luck with this one, I am having similar issues?

thanks!

Please or to participate in this conversation.