Since $instance is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $instance to at least protected.
Loading history...
43
return static::$instance = new static;
44
}
45
46
return static::$instance;
47
}
48
49
/**
50
* Creates new validator instance.
51
*
52
* @param array $data
53
* @param array $rules
54
* @param array $messages
55
*
56
* @return Validator
57
*/
58
public function make(array $data, array $rules, array $messages = [])
59
{
60
return (new Validator($data, $rules, $messages))->extend($this->available);