added validation message to language file for required_with
Signed-off-by: Jason Walton <jwalton512@gmail.com>
This commit is contained in:
@@ -863,6 +863,20 @@ class Validator {
|
||||
return $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace all place-holders for the required_with rule.
|
||||
*
|
||||
* @param string $message
|
||||
* @param string $attribute
|
||||
* @param string $rule
|
||||
* @param array $parameters
|
||||
* @return string
|
||||
*/
|
||||
protected function replace_required_with($message, $attribute, $rule, $parameters)
|
||||
{
|
||||
return str_replace(':field', $this->attribute($parameters[0]), $message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace all place-holders for the between rule.
|
||||
*
|
||||
@@ -1208,4 +1222,4 @@ class Validator {
|
||||
throw new \Exception("Method [$method] does not exist.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user