I have the following :
PDF::loadView('emails.pagoHechoPDF', compact('order', 'address', 'user'))
->setPaper('a4')
->setOrientation('landscape')
->save('temp/comprobantedepago'. $pago->order_id .'.pdf');
But when I download the PDF prints " {{$order->required_date}} " instead of the value.
I tried too
PDF::loadView('emails.pagoHechoPDF', array('order'=>$order, 'address'=>$address, 'user'=>$user))
->setPaper('a4')
->setOrientation('landscape')
->save('temp/comprobantedepago'. $pago->order_id .'.pdf');
What's wrong?
确保文件名中包含blade
字符串:
resources/views/emails/pagoHechoPDF.blade.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.