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
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('
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community