add update otp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user