trait FormatsMessages (View source)
| ReplacesAttributes |
| string | replaceAcceptedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the accepted_if rule. | from ReplacesAttributes |
| string | replaceDeclinedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the declined_if rule. | from ReplacesAttributes |
| string | replaceBetween(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the between rule. | from ReplacesAttributes |
| string | replaceDateFormat(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the date_format rule. | from ReplacesAttributes |
| string | replaceDecimal(string $message, string $attribute, string $rule, array<int,int> $parameters)
Replace all place-holders for the decimal rule. | from ReplacesAttributes |
| string | replaceDifferent(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the different rule. | from ReplacesAttributes |
| string | replaceDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the digits rule. | from ReplacesAttributes |
| string | replaceDigitsBetween(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the digits (between) rule. | from ReplacesAttributes |
| string | replaceExtensions(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the extensions rule. | from ReplacesAttributes |
| string | replaceMin(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the min rule. | from ReplacesAttributes |
| string | replaceMinDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the min digits rule. | from ReplacesAttributes |
| string | replaceMax(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the max rule. | from ReplacesAttributes |
| string | replaceMaxDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the max digits rule. | from ReplacesAttributes |
| string | replaceMissingIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_if rule. | from ReplacesAttributes |
| string | replaceMissingUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_unless rule. | from ReplacesAttributes |
| string | replaceMissingWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_with rule. | from ReplacesAttributes |
| string | replaceMissingWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_with_all rule. | from ReplacesAttributes |
| string | replaceMultipleOf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the multiple_of rule. | from ReplacesAttributes |
| string | replaceIn(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the in rule. | from ReplacesAttributes |
| string | replaceNotIn(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the not_in rule. | from ReplacesAttributes |
| string | replaceInArray(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the in_array rule. | from ReplacesAttributes |
| string | replaceRequiredArrayKeys(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_array_keys rule. | from ReplacesAttributes |
| string | replaceMimetypes(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the mimetypes rule. | from ReplacesAttributes |
| string | replaceMimes(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the mimes rule. | from ReplacesAttributes |
| string | replacePresentIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the present_if rule. | from ReplacesAttributes |
| string | replacePresentUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the present_unless rule. | from ReplacesAttributes |
| string | replacePresentWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the present_with rule. | from ReplacesAttributes |
| string | replacePresentWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the present_with_all rule. | from ReplacesAttributes |
| string | replaceRequiredWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_with rule. | from ReplacesAttributes |
| string | replaceRequiredWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_with_all rule. | from ReplacesAttributes |
| string | replaceRequiredWithout(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_without rule. | from ReplacesAttributes |
| string | replaceRequiredWithoutAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_without_all rule. | from ReplacesAttributes |
| string | replaceSize(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the size rule. | from ReplacesAttributes |
| string | replaceGt(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the gt rule. | from ReplacesAttributes |
| string | replaceLt(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the lt rule. | from ReplacesAttributes |
| string | replaceGte(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the gte rule. | from ReplacesAttributes |
| string | replaceLte(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the lte rule. | from ReplacesAttributes |
| string | replaceRequiredIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_if rule. | from ReplacesAttributes |
| string | replaceRequiredIfAccepted(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_if_accepted rule. | from ReplacesAttributes |
| string | replaceRequiredIfDeclined(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_if_declined rule. | from ReplacesAttributes |
| string | replaceRequiredUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_unless rule. | from ReplacesAttributes |
| string | replaceProhibitedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_if rule. | from ReplacesAttributes |
| string | replaceProhibitedUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_unless rule. | from ReplacesAttributes |
| string | replaceProhibits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_with rule. | from ReplacesAttributes |
| string | replaceSame(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the same rule. | from ReplacesAttributes |
| string | replaceBefore(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the before rule. | from ReplacesAttributes |
| string | replaceBeforeOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the before_or_equal rule. | from ReplacesAttributes |
| string | replaceAfter(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the after rule. | from ReplacesAttributes |
| string | replaceAfterOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the after_or_equal rule. | from ReplacesAttributes |
| string | replaceDateEquals(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the date_equals rule. | from ReplacesAttributes |
| string | replaceDimensions(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the dimensions rule. | from ReplacesAttributes |
| string | replaceEndsWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the ends_with rule. | from ReplacesAttributes |
| string | replaceDoesntEndWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the doesnt_end_with rule. | from ReplacesAttributes |
| string | replaceStartsWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the starts_with rule. | from ReplacesAttributes |
| string | replaceDoesntStartWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the doesnt_start_with rule. | from ReplacesAttributes |
| string | getMessage(string $attribute, string $rule)
Get the validation message for an attribute and rule. | |
| string|null | getInlineMessage(string $attribute, string $rule)
Get the proper inline error message for standard and size rules. | |
| string|null | getFromLocalArray(string $attribute, string $lowerRule, array|null $source = null)
Get the inline message for a rule if it exists. | |
| string | getCustomMessageFromTranslator(array|string $keys)
Get the custom error message from the translator. | |
| string | getWildcardCustomMessages(array $messages, string $search, string $default)
Check the given messages for a wildcard key. | |
| string | getSizeMessage(string $attribute, string $rule)
Get the proper error message for an attribute and size rule. | |
| string | getAttributeType(string $attribute)
Get the data type of the given attribute. | |
| string | makeReplacements(string $message, string $attribute, string $rule, array $parameters)
Replace all error message place-holders with actual values. | |
| string | getDisplayableAttribute(string $attribute)
Get the displayable name of the attribute. | |
| string|null | getAttributeFromTranslations(string $name)
Get the given attribute from the attribute translations. | |
| string|null | getAttributeFromLocalArray(string $attribute, array|null $source = null)
Get the custom name for an attribute if it exists in the given array. | |
| string | replaceAttributePlaceholder(string $message, string $value)
Replace the :attribute placeholder in the given message. | |
| string | replaceIndexPlaceholder(string $message, string $attribute)
Replace the :index placeholder in the given message. | |
| string | replacePositionPlaceholder(string $message, string $attribute)
Replace the :position placeholder in the given message. | |
| string | replaceIndexOrPositionPlaceholder(string $message, string $attribute, string $placeholder, Closure|null $modifier = null)
Replace the :index or :position placeholder in the given message. | |
| string | numberToIndexOrPositionWord(int $value)
Get the word for a index or position segment. | |
| string | replaceInputPlaceholder(string $message, string $attribute)
Replace the :input placeholder in the given message. | |
| string | getDisplayableValue(string $attribute, mixed $value)
Get the displayable name of the value. | |
| array | getAttributeList(array $values)
Transform an array of attributes to their displayable form. | |
| string|null | callReplacer(string $message, string $attribute, string $rule, array $parameters, Validator $validator)
Call a custom validator message replacer. | |
| string | callClassBasedReplacer(string $callback, string $message, string $attribute, string $rule, array $parameters, Validator $validator)
Call a class based validator message replacer. |
Replace all place-holders for the accepted_if rule.
Replace all place-holders for the declined_if rule.
Replace all place-holders for the between rule.
Replace all place-holders for the date_format rule.
Replace all place-holders for the decimal rule.
Replace all place-holders for the different rule.
Replace all place-holders for the digits rule.
Replace all place-holders for the digits (between) rule.
Replace all place-holders for the extensions rule.
Replace all place-holders for the min rule.
Replace all place-holders for the min digits rule.
Replace all place-holders for the max rule.
Replace all place-holders for the max digits rule.
Replace all place-holders for the missing_if rule.
Replace all place-holders for the missing_unless rule.
Replace all place-holders for the missing_with rule.
Replace all place-holders for the missing_with_all rule.
Replace all place-holders for the multiple_of rule.
Replace all place-holders for the in rule.
Replace all place-holders for the not_in rule.
Replace all place-holders for the in_array rule.
Replace all place-holders for the required_array_keys rule.
Replace all place-holders for the mimetypes rule.
Replace all place-holders for the mimes rule.
Replace all place-holders for the present_if rule.
Replace all place-holders for the present_unless rule.
Replace all place-holders for the present_with rule.
Replace all place-holders for the present_with_all rule.
Replace all place-holders for the required_with rule.
Replace all place-holders for the required_with_all rule.
Replace all place-holders for the required_without rule.
Replace all place-holders for the required_without_all rule.
Replace all place-holders for the size rule.
Replace all place-holders for the gt rule.
Replace all place-holders for the lt rule.
Replace all place-holders for the gte rule.
Replace all place-holders for the lte rule.
Replace all place-holders for the required_if rule.
Replace all place-holders for the required_if_accepted rule.
Replace all place-holders for the required_if_declined rule.
Replace all place-holders for the required_unless rule.
Replace all place-holders for the prohibited_if rule.
Replace all place-holders for the prohibited_unless rule.
Replace all place-holders for the prohibited_with rule.
Replace all place-holders for the same rule.
Replace all place-holders for the before rule.
Replace all place-holders for the before_or_equal rule.
Replace all place-holders for the after rule.
Replace all place-holders for the after_or_equal rule.
Replace all place-holders for the date_equals rule.
Replace all place-holders for the dimensions rule.
Replace all place-holders for the ends_with rule.
Replace all place-holders for the doesnt_end_with rule.
Replace all place-holders for the starts_with rule.
Replace all place-holders for the doesnt_start_with rule.
Get the validation message for an attribute and rule.
Get the proper inline error message for standard and size rules.
Get the inline message for a rule if it exists.
Get the custom error message from the translator.
Check the given messages for a wildcard key.
Get the proper error message for an attribute and size rule.
Get the data type of the given attribute.
Replace all error message place-holders with actual values.
Get the displayable name of the attribute.
Get the given attribute from the attribute translations.
Get the custom name for an attribute if it exists in the given array.
Replace the :attribute placeholder in the given message.
Replace the :index placeholder in the given message.
Replace the :position placeholder in the given message.
Replace the :index or :position placeholder in the given message.
Get the word for a index or position segment.
Replace the :input placeholder in the given message.
Get the displayable name of the value.
Transform an array of attributes to their displayable form.
Call a custom validator message replacer.
Call a class based validator message replacer.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Validation/Concerns/FormatsMessages.html