makeTestData(); } public function testExample() { $invoice = $this->invoice; $invitation = $invoice->invitations()->first(); $engine = new HtmlEngine(null, $invitation, 'invoice'); $design = new Design( Design::CLEAN ); $state = [ 'template' => $design->elements([ 'client' => $invoice->client, 'entity' => $invoice, 'pdf_variables' => (array)$invoice->company->settings->pdf_variables, ]), 'variables' => $engine->generateLabelsAndValues(), ]; $maker = new PdfMaker($state); $maker ->design($design) ->build(); // exec('echo "" > storage/logs/laravel.log'); // info($maker->getCompiledHTML(true)); $this->assertTrue(true); } }