trait FormatsMessages

Traits

Methods

string
replaceAcceptedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the accepted_if rule.

string
replaceDeclinedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the declined_if rule.

string
replaceBetween(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the between rule.

string
replaceDateFormat(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the date_format rule.

string
replaceDecimal(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the decimal rule.

string
replaceDifferent(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the different rule.

string
replaceDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the digits rule.

string
replaceDigitsBetween(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the digits (between) rule.

string
replaceEncoding(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the encoding rule.

string
replaceExtensions(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the extensions rule.

string
replaceMin(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the min rule.

string
replaceMinDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the min digits rule.

string
replaceMax(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the max rule.

string
replaceMaxDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the max digits rule.

string
replaceMissingIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_if rule.

string
replaceMissingUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_unless rule.

string
replaceMissingWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_with rule.

string
replaceMissingWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_with_all rule.

string
replaceMultipleOf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the multiple_of rule.

string
replaceIn(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in rule.

string
replaceNotIn(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the not_in rule.

string
replaceInArray(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in_array rule.

string
replaceInArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in_array_keys rule.

string
replaceArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the array_keys rule.

string
replaceRequiredArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_array_keys rule.

string
replaceMimetypes(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the mimetypes rule.

string
replaceMimes(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the mimes rule.

string
replacePresentIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_if rule.

string
replacePresentUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_unless rule.

string
replacePresentWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_with rule.

string
replacePresentWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_with_all rule.

string
replaceRequiredWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_with rule.

string
replaceRequiredWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_with_all rule.

string
replaceRequiredWithout(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_without rule.

string
replaceRequiredWithoutAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_without_all rule.

string
replaceSize(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the size rule.

string
replaceGt(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the gt rule.

string
replaceLt(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the lt rule.

string
replaceGte(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the gte rule.

string
replaceLte(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the lte rule.

string
replaceRequiredIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if rule.

string
replaceRequiredIfAccepted(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if_accepted rule.

string
replaceRequiredIfDeclined(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if_declined rule.

string
replaceRequiredUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_unless rule.

string
replaceProhibitedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if rule.

string
replaceProhibitedIfAccepted(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if_accepted rule.

string
replaceProhibitedIfDeclined(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if_declined rule.

string
replaceProhibitedUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_unless rule.

string
replaceProhibits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_with rule.

string
replaceSame(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the same rule.

string
replaceBefore(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the before rule.

string
replaceBeforeOrEqual(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the before_or_equal rule.

string
replaceAfter(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the after rule.

string
replaceAfterOrEqual(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the after_or_equal rule.

string
replaceDateEquals(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the date_equals rule.

string
replaceDimensions(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the dimensions rule.

string
replaceEndsWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the ends_with rule.

string
replaceDoesntEndWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_end_with rule.

string
replaceStartsWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the starts_with rule.

string
replaceDoesntStartWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_start_with rule.

string
replaceDoesntContain(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_contain rule.

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.

array|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
getWildcardMessagePattern(string $key, bool $multipleSegments = false)

Build a wildcard message pattern that preserves literal path segments.

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
replaceOrdinalPositionPlaceholder(string $message, string $attribute)

Replace the :ordinal-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.

Details

in ReplacesAttributes at line 17
protected string replaceAcceptedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the accepted_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 31
protected string replaceDeclinedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the declined_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 41
protected string replaceBetween(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the between rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 51
protected string replaceDateFormat(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the date_format rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 61
protected string replaceDecimal(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the decimal rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 77
protected string replaceDifferent(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the different rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 87
protected string replaceDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the digits rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 97
protected string replaceDigitsBetween(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the digits (between) rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 107
protected string replaceEncoding(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the encoding rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 117
protected string replaceExtensions(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the extensions rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 127
protected string replaceMin(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the min rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 137
protected string replaceMinDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the min digits rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 147
protected string replaceMax(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the max rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 157
protected string replaceMaxDigits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the max digits rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 167
protected string replaceMissingIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 177
protected string replaceMissingUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_unless rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 190
protected string replaceMissingWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 208
protected string replaceMissingWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the missing_with_all rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 218
protected string replaceMultipleOf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the multiple_of rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 228
protected string replaceIn(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 250
protected string replaceNotIn(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the not_in rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 260
protected string replaceInArray(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in_array rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 272
protected string replaceInArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the in_array_keys rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 282
protected string replaceArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the array_keys rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 305
protected string replaceRequiredArrayKeys(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_array_keys rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 315
protected string replaceMimetypes(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the mimetypes rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 325
protected string replaceMimes(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the mimes rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 335
protected string replacePresentIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 345
protected string replacePresentUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_unless rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 355
protected string replacePresentWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 373
protected string replacePresentWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the present_with_all rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 383
protected string replaceRequiredWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 401
protected string replaceRequiredWithAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_with_all rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 411
protected string replaceRequiredWithout(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_without rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 421
protected string replaceRequiredWithoutAll(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_without_all rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 431
protected string replaceSize(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the size rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 441
protected string replaceGt(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the gt rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 455
protected string replaceLt(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the lt rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 465
protected string replaceGte(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the gte rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 475
protected string replaceLte(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the lte rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 485
protected string replaceRequiredIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 495
protected string replaceRequiredIfAccepted(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if_accepted rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 507
protected string replaceRequiredIfDeclined(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_if_declined rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 517
protected string replaceRequiredUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the required_unless rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 546
protected string replaceProhibitedIf(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 556
protected string replaceProhibitedIfAccepted(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if_accepted rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 566
protected string replaceProhibitedIfDeclined(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_if_declined rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 576
protected string replaceProhibitedUnless(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_unless rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 586
protected string replaceProhibits(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the prohibited_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 604
protected string replaceSame(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the same rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 616
protected string replaceBefore(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the before rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 630
protected string replaceBeforeOrEqual(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the before_or_equal rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 640
protected string replaceAfter(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the after rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 650
protected string replaceAfterOrEqual(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the after_or_equal rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 660
protected string replaceDateEquals(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the date_equals rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 670
protected string replaceDimensions(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the dimensions rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 688
protected string replaceEndsWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the ends_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 698
protected string replaceDoesntEndWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_end_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 708
protected string replaceStartsWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the starts_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 718
protected string replaceDoesntStartWith(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_start_with rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

in ReplacesAttributes at line 728
protected string replaceDoesntContain(string $message, string $attribute, string $rule, array $parameters)

Replace all place-holders for the doesnt_contain rule.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

at line 21
protected string getMessage(string $attribute, string $rule)

Get the validation message for an attribute and rule.

Parameters

string $attribute
string $rule

Return Value

string

at line 77
protected string|null getInlineMessage(string $attribute, string $rule)

Get the proper inline error message for standard and size rules.

Parameters

string $attribute
string $rule

Return Value

string|null

at line 93
protected array|string|null getFromLocalArray(string $attribute, string $lowerRule, array|null $source = null)

Get the inline message for a rule if it exists.

Parameters

string $attribute
string $lowerRule
array|null $source

Return Value

array|string|null

at line 150
protected string getCustomMessageFromTranslator(array|string $keys)

Get the custom error message from the translator.

Parameters

array|string $keys

Return Value

string

at line 183
protected string getWildcardCustomMessages(array $messages, string $search, string $default)

Check the given messages for a wildcard key.

Parameters

array $messages
string $search
string $default

Return Value

string

at line 201
protected string getWildcardMessagePattern(string $key, bool $multipleSegments = false)

Build a wildcard message pattern that preserves literal path segments.

Parameters

string $key
bool $multipleSegments

Return Value

string

at line 222
protected string getSizeMessage(string $attribute, string $rule)

Get the proper error message for an attribute and size rule.

Parameters

string $attribute
string $rule

Return Value

string

at line 239
protected string getAttributeType(string $attribute)

Get the data type of the given attribute.

Parameters

string $attribute

Return Value

string

at line 256
string makeReplacements(string $message, string $attribute, string $rule, array $parameters)

Replace all error message place-holders with actual values.

Attribute paths and dependent field parameters retain their encoded literal dots and asterisks until display or delivery to a registered custom replacer.

Parameters

string $message
string $attribute
string $rule
array $parameters

Return Value

string

at line 287
string getDisplayableAttribute(string $attribute)

Get the displayable name of the attribute.

Parameters

string $attribute

Return Value

string

at line 329
protected string|null getAttributeFromTranslations(string $name)

Get the given attribute from the attribute translations.

Parameters

string $name

Return Value

string|null

at line 341
protected string|null getAttributeFromLocalArray(string $attribute, array|null $source = null)

Get the custom name for an attribute if it exists in the given array.

Parameters

string $attribute
array|null $source

Return Value

string|null

at line 367
protected string replaceAttributePlaceholder(string $message, string $value)

Replace the :attribute placeholder in the given message.

Parameters

string $message
string $value

Return Value

string

at line 379
protected string replaceIndexPlaceholder(string $message, string $attribute)

Replace the :index placeholder in the given message.

Parameters

string $message
string $attribute

Return Value

string

at line 391
protected string replacePositionPlaceholder(string $message, string $attribute)

Replace the :position placeholder in the given message.

Parameters

string $message
string $attribute

Return Value

string

at line 404
protected string replaceOrdinalPositionPlaceholder(string $message, string $attribute)

Replace the :ordinal-position placeholder in the given message.

Parameters

string $message
string $attribute

Return Value

string

at line 421
protected string replaceIndexOrPositionPlaceholder(string $message, string $attribute, string $placeholder, Closure|null $modifier = null)

Replace the :index or :position placeholder in the given message.

Parameters

string $message
string $attribute
string $placeholder
Closure|null $modifier

Return Value

string

at line 457
protected string numberToIndexOrPositionWord(int $value)

Get the word for a index or position segment.

Parameters

int $value

Return Value

string

at line 476
protected string replaceInputPlaceholder(string $message, string $attribute)

Replace the :input placeholder in the given message.

Parameters

string $message
string $attribute

Return Value

string

at line 494
string getDisplayableValue(string $attribute, mixed $value)

Get the displayable name of the value.

Parameters

string $attribute
mixed $value

Return Value

string

at line 526
protected array getAttributeList(array $values)

Transform an array of attributes to their displayable form.

Parameters

array $values

Return Value

array

at line 543
protected string|null callReplacer(string $message, string $attribute, string $rule, array $parameters, Validator $validator)

Call a custom validator message replacer.

Parameters

string $message
string $attribute
string $rule
array $parameters
Validator $validator

Return Value

string|null

at line 560
protected string callClassBasedReplacer(string $callback, string $message, string $attribute, string $rule, array $parameters, Validator $validator)

Call a class based validator message replacer.

Parameters

string $callback
string $message
string $attribute
string $rule
array $parameters
Validator $validator

Return Value

string