I'm writing a Request Validator in Laravel, where i have the following conditions. To check if passwords given are the same, this will fail, with the message that the passwords are not the same, even thou the passwords are the same.
'password1' => 'string',
'password2' => 'string|same: password1'
If i disable the validation and dd(Input::only('password1','password2'));, it will print out the following.
array:2 [
"password1" => "123"
"password2" => "123"
]
And my mind is baffled.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire