From 27f1d3ac3d1c6c795ddf75b3ea57112e47ad1bee Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Wed, 13 Apr 2022 10:59:09 +0800 Subject: [PATCH] fix skit2 --- resources/js/components/util/PBmodal.vue | 1 - routes/web.php | 12 +++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/js/components/util/PBmodal.vue b/resources/js/components/util/PBmodal.vue index 27ed0b2..6594e6c 100644 --- a/resources/js/components/util/PBmodal.vue +++ b/resources/js/components/util/PBmodal.vue @@ -121,7 +121,6 @@ export default { }, FuncHantar: function () { - console.log(this.item.image); let formData = new FormData(); formData.append('image', this.item.image); formData.append('kelulusan', this.selected); diff --git a/routes/web.php b/routes/web.php index f4c0dfa..14b3e0b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,7 @@ 1 + ])->json(); + + return response(base64_decode($cawangan['data']), 200, [ + 'Content-type' => 'application/' . $cawangan['type'], + 'Content-Disposition' => 'inline; filename='.$cawangan['filename'] + ]); + }); // Auth::routes();