not_in
| Category | Membership |
| Related | in |
| Bundle size | 191 B |
Validates that the value is not any of the listed values.
Usage
vue
<VfText name="username" label="Username" rules="not_in:admin,root" />vue
<template>
<VfText name="username" label="Username" rules="not_in:admin,root" />
</template>ts
{
username: {
type: 'text',
label: 'Username',
rules: 'not_in:admin,root',
},
}Parameters
| Parameter | Description |
|---|---|
...values | The forbidden values, as a comma-separated list. |
Error Messages
| Key | Default Message |
|---|---|
rule_not_in_error | The selected {attribute} is invalid. |