Skip to content

Kirby 4.1.2

min

Checks if the value is higher than the minimum value

V::min($value, float $min): bool

Parameters

Name Type Default
$value * mixed
$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