Fix : Download Document

This commit is contained in:
Daeng Deni Mardaeni 2023-09-21 13:06:28 +07:00
parent 080af348ac
commit 9c056df476

View File

@ -67,7 +67,6 @@
// Validate the request... // Validate the request...
$validated = $request->validated(); $validated = $request->validated();
$validated = $request->validated();
$detailValidate = Validator::validate($request->all(), [ $detailValidate = Validator::validate($request->all(), [
'file' => [ 'file' => [
@ -298,10 +297,10 @@
return Response::download($filepath); 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); $filepath = public_path($document->file);
return Response::download($filepath); return Response::download($filepath);
}*/ }
} }
public function aktif(Request $request) public function aktif(Request $request)