生成pdf
This commit is contained in:
@@ -14,7 +14,7 @@ class PdfController
|
||||
public function previewFromFile(Request $request): Response
|
||||
{
|
||||
// 你的模板路径(示例)
|
||||
$tpl = base_path('resource/templates/stock-order.html');
|
||||
$tpl = base_path('resource/templates/usedCar.html');
|
||||
// 可选:把 {{变量}} 替换
|
||||
$html = PdfHelper::loadTemplate($tpl, [
|
||||
'title' => '备货单',
|
||||
|
||||
Reference in New Issue
Block a user