Created Validator::make()
This commit is contained in:
parent
230af4125d
commit
36fe006b08
|
@ -52,6 +52,19 @@ public function __construct($attributes, $rules, $messages = array())
|
||||||
$this->messages = $messages;
|
$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.
|
* Validate the target array using the specified validation rules.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue