Commit 99ae26d0 by Taylor Otwell

Merge pull request #24 from mikelbring/develop

Created Validator::make()
parents 230af412 36fe006b
...@@ -53,6 +53,19 @@ class Validator { ...@@ -53,6 +53,19 @@ class Validator {
} }
/** /**
* 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. * Validate the target array using the specified validation rules.
* *
* @return bool * @return bool
......
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