Hello, I'm doing a system that makes the issue of contracts. I store my clauses in another table and return the Arrays and pass them to a String. That was the best way I could get it to work the way I wanted it to. I'm using the PHPOffice / PHPWord library to insert the variable into my document (the file and OOXML), but when I do the insertion it goes like this:
Primeira ClausulaConteúdo da Clausula 1.Segunda ClausulaConteúdo da Clausula 2.
If I use it to wrap lines from the OOXML file it goes that way.
Primeira Clausula
Conteúdo da Clausula 1.
Segunda Clausula
Conteúdo da Clausula 2.
Does anyone know of any way to do this break lines? Below is my code.
for ($i=0; $i < count($requestData["contrato_id"]); $i++) {
Clausula_Contrato::where('id', '=', $requestData["contrato_id"][$i])->update([
'descricao' => $requestData["descricao"][$i],
'conteudo' => $requestData["conteudo"][$i]
]);
$clausulas .= '<w:br/>'.$requestData["descricao"][$i].'<w:br/>'.$requestData["conteudo"][$i].'<w:br/>';
}