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');
感謝。