Add on to accepted.

This commit is contained in:
Taylor Otwell
2013-01-05 13:48:36 -06:00
parent 6a69979376
commit 19b01b1d27

View File

@@ -301,7 +301,7 @@ class Validator {
*/
protected function validate_accepted($attribute, $value)
{
return $this->validate_required($attribute, $value) and ($value == 'yes' or $value == '1');
return $this->validate_required($attribute, $value) and ($value == 'yes' or $value == '1' or $value == 'on');
}
/**