trait BetweenRule (View source)

Methods

void
compileBetween(string $key, string $masque)

Compile Between Rule

Details

protected void compileBetween(string $key, string $masque)

Compile Between Rule

[between:min,max] Check that the value is between min and max (inclusive). For numeric values the numeric value is checked; for strings the character length is checked — mirroring the convention used by min and max.

Parameters

string $key
string $masque

Return Value

void