Skip to content

Commit eba552c

Browse files
[12.x] Adds bool:strict docs (#10622)
* Adds bool:strict docs * working change * Update validation.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 00b0fdc commit eba552c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

validation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,6 +1346,12 @@ The field under validation must have a size between the given _min_ and _max_ (i
13461346

13471347
The field under validation must be able to be cast as a boolean. Accepted input are `true`, `false`, `1`, `0`, `"1"`, and `"0"`.
13481348

1349+
You may use the `strict` parameter to only consider the field valid if its value is `true` or `false`:
1350+
1351+
```php
1352+
'foo' => 'boolean:strict'
1353+
```
1354+
13491355
<a name="rule-confirmed"></a>
13501356
#### confirmed
13511357

0 commit comments

Comments
 (0)