Browse Source

added replace_mimes method.

Taylor Otwell 13 years ago
parent
commit
ee2d38f260
1 changed files with 14 additions and 0 deletions
  1. 14 0
      laravel/validator.php

+ 14 - 0
laravel/validator.php

@@ -806,6 +806,20 @@ class Validator {
 		return str_replace(':values', implode(', ', $parameters), $message);
 		return str_replace(':values', implode(', ', $parameters), $message);
 	}
 	}
 
 
+	/**
+	 * Replace all place-holders for the not_in rule.
+	 *
+	 * @param  string  $message
+	 * @param  string  $attribute
+	 * @param  string  $rule
+	 * @param  array   $parameters
+	 * @return string
+	 */
+	protected function replace_mimes($message, $attribute, $rule, $parameters)
+	{
+		return str_replace(':values', implode(', ', $parameters), $message);
+	}
+
 	/**
 	/**
 	 * Replace all place-holders for the same rule.
 	 * Replace all place-holders for the same rule.
 	 *
 	 *