Fix : Download Document
This commit is contained in:
parent
080af348ac
commit
9c056df476
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user