public function gerarBoleto() { $view = view(); $view->addNamespace('BoletoHtmlRender', realpath(__DIR__ . '/view/')); return $view->make('BoletoHtmlRender::boleto', $this->dados)->render(); }
/** * Render HTML * * @return string * @throws \Exception */ public function renderHTML() { $html = new Html($this->toArray()); return $html->gerarBoleto(); }