Tambah Manual Book

This commit is contained in:
Pusdatin BPKD Jkt
2022-11-09 10:10:55 +07:00
parent a96f71d5e8
commit bfd375a87d
6 changed files with 19 additions and 3 deletions
+10
View File
@@ -48,4 +48,14 @@ class HomeController extends Controller
echo $decryptedContent;
}, 'file.jpg');
}
public function downloadManual()
{
$file = "manual_aplikasi_sidata.pdf";
$headers = [
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'attachment;filename='.$file
];
return response()->download($file , $file, $headers);
}
}