Return a json prompt
['code' => 'Verification code error! ']
Then return a status code with a response header of 422
认证高级PHP讲师
return response()->json(['code' => '验证码错误!'],422)
return response()->json(['code' => '验证码错误!'],422)