Level 18
You could render your blade to HTML first, then use something like phpdocx to convert that HTML to a Word document.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Iam trying to export word documents from my blade template.It was easy for me to export in pdf format since dompdf supports blade to PDF conversion.But phpWord doesn't i think.Could anybody help me,how can i solve this particular issue.
Please or to participate in this conversation.