withData(['conteudo' => $templateEvolucaoMedica . $templatePrescricaoInterna]) ->getHtml(); } public function __invoke(int $atendimentoMedicoId, int $prescricaoInternaId) { return (new Pdf)->stream(self::getTemplate($atendimentoMedicoId, $prescricaoInternaId), self::FILE_NAME); } }