From f6f0cca41c5ef9bb14d9799bbdd20006cf080ea7 Mon Sep 17 00:00:00 2001 From: "afiq.hamzah" Date: Thu, 24 Nov 2022 12:21:14 +0800 Subject: [PATCH] Prevent marhun photo blob to be stored into db --- app/Services/MarhunPhotoService.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Services/MarhunPhotoService.php b/app/Services/MarhunPhotoService.php index 7c7bc6e2..22bafd7b 100644 --- a/app/Services/MarhunPhotoService.php +++ b/app/Services/MarhunPhotoService.php @@ -12,13 +12,11 @@ class MarhunPhotoService public function store(Request $request) { - $data = base64_encode($request->gambarMarhun->get()); $file_type = $request->gambarMarhun->extension(); $addfile = new FileMarhun(); $addfile->lelongbid_id = $request->lelongbid_id; $addfile->file_type = $file_type; - $addfile->filename = $data; if ($request->photo_type == 1) { $addfile->photo_type = 1; $addfile->save();