V::min()
Checks if the value is higher than the minimum value
V::min($value, float $min): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$value |
– | ||
$min |
float |
– |
Return type
bool
In your code
if(V::min(10, 5)) {
echo 'Yay, valid!';
}
In fields
fields:
example:
label: Example field
type: text
validate:
min: 5