0
我使用Laravel和验证:Laravel验证:相同的工作不
$validator = Validator::make(
array('password' => $input['account_password']),
array('password' => 'same:plain_text_password')
);
if ($validator->fails())
{
$response = ['success' => false, 'errors' => $validator->messages()];
return $response;
}
如果我在两个字段中使用相同的输入,它作为一个失败返回,但如果我不提供输入密码字段/不同的数据然后它返回true?
这里发生了什么?
为什么你要做纯文本密码? – Laurence