Commit 36fe006b authored by Michael Hasselbring's avatar Michael Hasselbring

Created Validator::make()

parent 230af412
......@@ -52,6 +52,19 @@ class Validator {
$this->messages = $messages;
}
/**
* Factory for creating new validator instances.
*
* @param array $attributes
* @param array $rules
* @param array $messages
* @return Validator
*/
public static function make($attributes, $rules, $messages = array())
{
return new static($attributes, $rules, $messages);
}
/**
* 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