diff --git a/validation.md b/validation.md index 7a983322af..6f982d65c8 100644 --- a/validation.md +++ b/validation.md @@ -1346,6 +1346,12 @@ The field under validation must have a size between the given _min_ and _max_ (i The field under validation must be able to be cast as a boolean. Accepted input are `true`, `false`, `1`, `0`, `"1"`, and `"0"`. +You may use the `strict` parameter to only consider the field valid if its value is `true` or `false`: + +```php +'foo' => 'boolean:strict' +``` + #### confirmed