makePdf(); $receipt = $manager->getReceipt(); // キントーンへの保存 $receipt->setFiles(Receipt::FIELD_RECEIPT_PDF_FILE, collect([$file])); $receipt->save(); return response() ->file($file->getFullPath()); } }