Confirmed class
The Confirmed Rule.
Validates that the field has a matching {field}_confirmation field.
This is the Laravel convention for password confirmation, email confirmation, etc.
Usage
validate({
'password': 'secret123',
'password_confirmation': 'secret123',
}, {
'password': [Required(), Min(8), Confirmed()],
});
How It Works
For a field named password, this rule looks for password_confirmation
in the data and ensures both values match exactly.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
message(
) → String -
Get the validation error message.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
params(
) → Map< String, dynamic> -
Get the replacement parameters for the message.
inherited
-
passes(
String attribute, dynamic value, Map< String, dynamic> data) → bool -
Determine if the validation rule passes.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited