FormatsMessages

 trait Winter\Storm\Validation\Concerns\FormatsMessages

Methods

protected getMessage (string $attribute, string $rule) : string

Get the validation message for an attribute and rule.

Parameters
Property Description
$attribute
string
$rule
string
Returns
string

protected getMessageInExtension (string $rule) : string

Calls the message() method for an extended rule and returns the result as a string.

Parameters
Property Description
$rule
string
Returns
string

protected hasMessageInExtension (string $rule) : bool

Determines if an extended rule has a message() method that provides a fallback message.

Parameters
Property Description
$rule
string
Returns
bool
Copyright © 2024 Winter CMS