coding style..

This commit is contained in:
Cüneyt Şentürk
2021-09-07 20:57:25 +03:00
parent 0bc9fa8571
commit 2a7bc48c75
6 changed files with 19 additions and 179 deletions

View File

@ -297,11 +297,13 @@ class Invoices extends Controller
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
$file_name = $this->getDocumentFileName($invoice);
$pdf = app('dompdf.wrapper');
$pdf->loadHTML($html);
//$pdf->setPaper('A4', 'portrait');
$file_name = $this->getDocumentFileName($invoice);
return $pdf->download($file_name);
}