added validation message to language file for required_with

Signed-off-by: Jason Walton <jwalton512@gmail.com>
This commit is contained in:
Jason Walton
2012-12-19 12:05:51 -07:00
parent 8ff052cbdb
commit 19cd539586
4 changed files with 40 additions and 4 deletions

View File

@@ -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.");
}
}
}