Support the ongoing development of Laravel.io →
posted 10 years ago
Views
Last updated 2 years ago.
0

First, try something like this:

$html = \View::make('back.sales.receipt', $data);
return $html;

And check if the output is correct. If the output is correct, try this:

$html = \View::make('back.sales.receipt', $data);
return PDF::loadHTML($html)->download('invoice.pdf');

If the first is correct, but the second not, please open an issue at https://github.com/barryvdh/laravel-dompdf/issues

Last updated 2 years ago.
0

The first outpus is correct, and the second one is incorrect. Like before, the second one only contain

'); mywindow.document.write(data); mywindow.document.write('

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.