invitations()->first(); $engine = new HtmlEngine($invitation, 'invoice'); $design = new Plain(); $product_table_columns = json_decode( json_encode($invoice->company->settings->pdf_variables), 1 )['product_columns']; $state = [ 'template' => $design->elements([ 'client' => $invoice->client, 'invoice' => $invoice, 'product-table-columns' => $product_table_columns, ]), 'variables' => $engine->generateLabelsAndValues(), ]; $maker = new PdfMaker($state); $maker ->design(Plain::class) ->build(); exec('echo "" > storage/logs/laravel.log'); info($maker->getCompiledHTML(true)); $this->assertTrue(true); } }