PresentWith
class PresentWith implements ParameterizedRule
Traits
Properties
| protected array | $fields |
Methods
array
formatConditionalValues(array $values)
Format conditional comparison values without rounding floats.
from
FormatsParameters
string
formatParameters(array $parameters)
Format parameters for a legacy validation rule string.
from
FormatsParameters
__construct(array|string $fields)
Create a new present_with rule instance.
array
toArray()
Get the rule name followed by its parameters.
Details
in
FormatsParameters at line 12
string
__toString()
Convert the rule to a validation string.
in
FormatsParameters at line 25
protected array
formatConditionalValues(array $values)
Format conditional comparison values without rounding floats.
in
FormatsParameters at line 40
protected string
formatParameters(array $parameters)
Format parameters for a legacy validation rule string.
at line 19
__construct(array|string $fields)
Create a new present_with rule instance.
at line 27
array
toArray()
Get the rule name followed by its parameters.