Created Validator::make()
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user