diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 4f8dcc25..7b7e6a06 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -609,7 +609,7 @@ class AccountController extends Controller $fileresit = FileResit::where('lelong_id', $lelong_id) ->where('user_id', $user_id) ->where('kodcaw', $caw_code) - ->where('photo_type', '=', '2') + // ->where('photo_type', '=', '2') ->get(); // dd($fileresit); foreach ($fileresit as $index => $itemresit) { diff --git a/app/Services/ResitPhotoService.php b/app/Services/ResitPhotoService.php index e0dc533c..5248424a 100644 --- a/app/Services/ResitPhotoService.php +++ b/app/Services/ResitPhotoService.php @@ -41,9 +41,9 @@ class ResitPhotoService $fileresit_id = $resit->id; // dd($fileresit_id);; - $photo_type_name = $resit->photo_type === 1 ? '1' : '2'; + // $photo_type_name = $resit->photo_type === 1 ? '1' : '2'; - $directory = $user_id.$DS.$lelong_id.$DS.$photo_type_name.$DS; + $directory = $user_id.$DS.$lelong_id.$DS; // dd($directory); $imageExtension = $resit->file_type; // dd($imageExtension);