add update otp

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-12-07 15:50:02 +08:00
parent 42c96ed705
commit af31bcd283
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -39,4 +39,12 @@ class OtpController extends Controller
return response()->json($otp);
}
public function usedOTP(Request $request){
$otp = OtpToken::on('mysql7')->where([['nokp','=',$request->nokp]])->update(array(
'used'=>1
));
return response()->json($otp,201);
}
}