From 9c056df476927eafe2b4933a1cc14c5623b11dae Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Thu, 21 Sep 2023 13:06:28 +0700 Subject: [PATCH] Fix : Download Document --- Http/Controllers/DocumentController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Http/Controllers/DocumentController.php b/Http/Controllers/DocumentController.php index 1023b07..3952a28 100644 --- a/Http/Controllers/DocumentController.php +++ b/Http/Controllers/DocumentController.php @@ -67,7 +67,6 @@ // Validate the request... $validated = $request->validated(); - $validated = $request->validated(); $detailValidate = Validator::validate($request->all(), [ 'file' => [ @@ -298,10 +297,10 @@ return Response::download($filepath); } - /*if($document->status == 1 && $document->approval_flag !== 1){ + if($document->status == 1 && $document->approval_flag !== 1){ $filepath = public_path($document->file); return Response::download($filepath); - }*/ + } } public function aktif(Request $request)