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();