word generate test
This commit is contained in:
parent
0f7c1cdaf3
commit
1701b0b737
|
|
@ -183,7 +183,14 @@ public function upload(DocumentUploadRequest $request,$attachment_id)
|
|||
}
|
||||
|
||||
public function downloadQuestionaire(){
|
||||
//todo generate pdf
|
||||
$headers = [
|
||||
"Content-type"=>"text/html",
|
||||
"Content-Disposition"=>"attachment;Filename=myGeneratefile.doc"
|
||||
];
|
||||
|
||||
$content = view('oprosniki.business')->render();
|
||||
|
||||
return \Response::make($content,200, $headers);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
|
||||
<head><meta charset="utf-8"></head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
|
||||
<table>
|
||||
<tbody border="1">
|
||||
<tr> TETS </tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
|
||||
<head><meta charset="utf-8"></head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>My Blog Laravel 7 generate word document from html Example - Nicesnippets.com</p>
|
||||
|
||||
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -27,17 +27,24 @@
|
|||
|
||||
$content = '<html>
|
||||
|
||||
<head><meta charset="utf-8"></head>
|
||||
<head><meta charset="utf-8"></head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<p>My Blog Laravel 7 generate word document from html Example - Nicesnippets.com</p>
|
||||
<p>
|
||||
|
||||
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
<ul><li>Php</li><li>Laravel</li><li>Html</li></ul>
|
||||
<table>
|
||||
<tbody border="1">
|
||||
<tr> TETS </tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</html>';
|
||||
</body>
|
||||
|
||||
</html>';
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue