Skip to main content

confirmed

Function confirmed 

Source
pub fn confirmed(
    value: Option<&str>,
    confirmation: Option<&str>,
) -> Option<String>
Expand description

Laravel’s confirmed rule: checks a field against a same-named ..._confirmation field (e.g. password / password_confirmation). Unlike the other rules here, an absent confirmation value is itself a failure whenever the primary value is present and non-empty - a present password with no password_confirmation field submitted at all is a mismatch, not something to silently skip.