Commit e1c89285 authored by Taylor Otwell's avatar Taylor Otwell

added passes and fails method to validtor.

parent 642b0f17
......@@ -117,6 +117,26 @@ class Validator {
static::$validators[$name] = $validator;
}
/**
* Validate the target array using the specified validation rules.
*
* @return bool
*/
public function passes()
{
return $this->valid();
}
/**
* Validate the target array using the specified validation rules.
*
* @return bool
*/
public function fails()
{
return $this->invalid();
}
/**
* Validate the target array using the specified validation rules.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment