using DomPdf to create PDF from html.
$html = '<html><head><body>Test</body></head></html>
$pdf = \App::make('dompdf.wrapper');
$pdf->loadHTML($html);
$pdf->render();
return $pdf->stream();
Get error:
Call to protected method Barryvdh\DomPDF\PDF::render() from context 'App\Http\Controllers\TestController'
When remove "
$pdf->render();
Create PDF file,but mess html code...
Tnx, P