same rule is for comparing the field value with the other field value
e.g.
[
'one' => 'required',
'two' => 'same:one'
]
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Trying to figure out why the 'same' validation rule isn't working. Any ideas as to what I am doing wrong?
Code:

Postman Result:
)
same rule is for comparing the field value with the other field value
e.g.
[
'one' => 'required',
'two' => 'same:one'
]
Please or to participate in this conversation.