On this page
ReplacesAttributes
trait ReplacesAttributes (View source)
Methods
string | replaceAcceptedIf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the accepted_if rule. |
|
string | replaceDeclinedIf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the declined_if rule. |
|
string | replaceBetween(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the between rule. |
|
string | replaceDateFormat(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the date_format rule. |
|
string | replaceDecimal(string $message, string $attribute, string $rule, array<int,int> $parameters) Replace all place-holders for the decimal rule. |
|
string | replaceDifferent(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the different rule. |
|
string | replaceDigits(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the digits rule. |
|
string | replaceDigitsBetween(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the digits (between) rule. |
|
string | replaceMin(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the min rule. |
|
string | replaceMinDigits(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the min digits rule. |
|
string | replaceMax(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the max rule. |
|
string | replaceMaxDigits(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the max digits rule. |
|
string | replaceMissingIf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the missing_if rule. |
|
string | replaceMissingUnless(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the missing_unless rule. |
|
string | replaceMissingWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the missing_with rule. |
|
string | replaceMissingWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the missing_with_all rule. |
|
string | replaceMultipleOf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the multiple_of rule. |
|
string | replaceIn(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the in rule. |
|
string | replaceNotIn(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the not_in rule. |
|
string | replaceInArray(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the in_array rule. |
|
string | replaceRequiredArrayKeys(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_array_keys rule. |
|
string | replaceMimetypes(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the mimetypes rule. |
|
string | replaceMimes(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the mimes rule. |
|
string | replaceRequiredWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_with rule. |
|
string | replaceRequiredWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_with_all rule. |
|
string | replaceRequiredWithout(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_without rule. |
|
string | replaceRequiredWithoutAll(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_without_all rule. |
|
string | replaceSize(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the size rule. |
|
string | replaceGt(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the gt rule. |
|
string | replaceLt(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the lt rule. |
|
string | replaceGte(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the gte rule. |
|
string | replaceLte(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the lte rule. |
|
string | replaceRequiredIf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_if rule. |
|
string | replaceRequiredIfAccepted(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_if_accepted rule. |
|
string | replaceRequiredUnless(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the required_unless rule. |
|
string | replaceProhibitedIf(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the prohibited_if rule. |
|
string | replaceProhibitedUnless(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the prohibited_unless rule. |
|
string | replaceProhibits(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the prohibited_with rule. |
|
string | replaceSame(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the same rule. |
|
string | replaceBefore(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the before rule. |
|
string | replaceBeforeOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the before_or_equal rule. |
|
string | replaceAfter(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the after rule. |
|
string | replaceAfterOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the after_or_equal rule. |
|
string | replaceDateEquals(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the date_equals rule. |
|
string | replaceDimensions(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the dimensions rule. |
|
string | replaceEndsWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the ends_with rule. |
|
string | replaceDoesntEndWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the doesnt_end_with rule. |
|
string | replaceStartsWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the starts_with rule. |
|
string | replaceDoesntStartWith(string $message, string $attribute, string $rule, array<int,string> $parameters) Replace all place-holders for the doesnt_start_with rule. |
Details
protected string replaceAcceptedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the accepted_if rule.
protected string replaceDeclinedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the declined_if rule.
protected string replaceBetween(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the between rule.
protected string replaceDateFormat(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the date_format rule.
protected string replaceDecimal(string $message, string $attribute, string $rule, array<int,int> $parameters)
Replace all place-holders for the decimal rule.
protected string replaceDifferent(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the different rule.
protected string replaceDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the digits rule.
protected string replaceDigitsBetween(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the digits (between) rule.
protected string replaceMin(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the min rule.
protected string replaceMinDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the min digits rule.
protected string replaceMax(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the max rule.
protected string replaceMaxDigits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the max digits rule.
protected string replaceMissingIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_if rule.
protected string replaceMissingUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_unless rule.
protected string replaceMissingWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_with rule.
protected string replaceMissingWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the missing_with_all rule.
protected string replaceMultipleOf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the multiple_of rule.
protected string replaceIn(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the in rule.
protected string replaceNotIn(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the not_in rule.
protected string replaceInArray(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the in_array rule.
protected string replaceRequiredArrayKeys(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_array_keys rule.
protected string replaceMimetypes(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the mimetypes rule.
protected string replaceMimes(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the mimes rule.
protected string replaceRequiredWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_with rule.
protected string replaceRequiredWithAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_with_all rule.
protected string replaceRequiredWithout(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_without rule.
protected string replaceRequiredWithoutAll(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_without_all rule.
protected string replaceSize(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the size rule.
protected string replaceGt(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the gt rule.
protected string replaceLt(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the lt rule.
protected string replaceGte(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the gte rule.
protected string replaceLte(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the lte rule.
protected string replaceRequiredIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_if rule.
protected string replaceRequiredIfAccepted(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_if_accepted rule.
protected string replaceRequiredUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the required_unless rule.
protected string replaceProhibitedIf(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_if rule.
protected string replaceProhibitedUnless(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_unless rule.
protected string replaceProhibits(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the prohibited_with rule.
protected string replaceSame(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the same rule.
protected string replaceBefore(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the before rule.
protected string replaceBeforeOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the before_or_equal rule.
protected string replaceAfter(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the after rule.
protected string replaceAfterOrEqual(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the after_or_equal rule.
protected string replaceDateEquals(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the date_equals rule.
protected string replaceDimensions(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the dimensions rule.
protected string replaceEndsWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the ends_with rule.
protected string replaceDoesntEndWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the doesnt_end_with rule.
protected string replaceStartsWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the starts_with rule.
protected string replaceDoesntStartWith(string $message, string $attribute, string $rule, array<int,string> $parameters)
Replace all place-holders for the doesnt_start_with rule.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Validation/Concerns/ReplacesAttributes.html