Commit 99ae26d0 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #24 from mikelbring/develop

Created Validator::make()
parents 230af412 36fe006b
......@@ -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