0
我想创建一个pdf使用laravel 5和https://github.com/elibyy/laravel-tcpdf如何使用tcpdf laravel 5加载刀片视图?
有没有办法加载视图并传递数据到视图?
像
$pdf = new TCPDF();
$pdf -> SetPrintHeader(false);
$pdf -> SetPrintFooter(false);
$pdf -> loadView('pdf.invoice',$data); //
$pdf -> Output(storage_path().'/pdf/file.pdf', 'I');
感谢。