min
Validates that the value's size is at least a minimum.
Usage
vue
<VfText name="username" label="Username" rules="required|min:3" />vue
<template>
<VfText name="username" label="Username" rules="required|min:3" />
</template>ts
{
username: {
type: 'text',
label: 'Username',
rules: 'required|min:3',
},
}Parameters
| Parameter | Description |
|---|---|
min | The minimum size. |
Behavior
How size is measured depends on the element type:
- String — the character count
- Numeric — the numeric value itself
- Array — the number of items
- File — the file size in kilobytes
Error Messages
| Key | Default Message |
|---|---|
rule_min_string_error | The {attribute} must be at least {min} characters. |
rule_min_numeric_error | The {attribute} must be at least {min}. |
rule_min_array_error | The {attribute} must have at least {min} items. |
rule_min_file_error | The {attribute} must be at least {min} kilobytes. |