Add boolean rule to README & remove unnecessary ternary

This commit is contained in:
Marcel Prince 2017-01-24 16:07:42 -08:00
parent a38c9b8fce
commit a09ac827c6
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ V::lang('ar');
* `accepted` - Checkbox or Radio must be accepted (yes, on, 1, true)
* `numeric` - Must be numeric
* `integer` - Must be integer number
* `boolean` - Must be boolean
* `array` - Must be array
* `length` - String must be certain length
* `lengthBetween` - String must be between given lengths

View File

@ -653,7 +653,7 @@ class Validator
*/
protected function validateBoolean($field, $value)
{
return (is_bool($value)) ? true : false;
return is_bool($value);
}
/**