class MaxDecimalPlaces implements Rule (View source)

Properties

protected $maxDecimals

Methods

__construct($maxDecimals = 2)

No description

bool
passes(string $attribute, mixed $value)

Determine if the validation rule passes.

string
message()

Get the validation error message.

Details

__construct($maxDecimals = 2)

No description

Parameters

$maxDecimals

bool passes(string $attribute, mixed $value)

Determine if the validation rule passes.

Parameters

string $attribute
mixed $value

Return Value

bool

string message()

Get the validation error message.

Return Value

string