protected function validate($data, $rules) { \Validator::resolver(function ($translator, $data, $rules, $messages, $parameters) { return new NumberValidator($translator, $data, $rules, $messages, $parameters); }); parent::validate($data, $this->getRules($data)); }
protected function validate($data, $rules) { \Validator::resolver(function ($translator, $data, $rules, $messages, $parameters) { return new BidValidator($translator, $data, $rules, $messages, $parameters); }); parent::validate($data, $rules); }
protected function validate($data, $rules) { $data['currentBalance'] = $this->getCurrentBalance()->getAmount(); parent::validate($data, $rules); }