Refine is a paid package. To purchase, head to hammerstone.dev.
The numeric condition is used for filtering on numeric attributes. This can include both integers and floats.
This condition has an id of
age, is applied against a column of
age, and has a display value to the end user of "Age".
By default, the
NumericCondition only allows integers through the validation process. If you would like to allow floats, you can call
If you have not called
allowFloats(), then the Laravel
integer rule is also applied.
Below you'll see all of the clauses available on the NumericCondition.
To read more general information about clauses, head over to the clauses page.
The attribute is equal to the user's input.
The attribute is not equal to the user's input.
The attribute is greater than the user's input.
The attribute is greater than or equal to the user's input.
The attribute is less than the user's input.
The attribute is less than or equal to the user's input.
The attribute is between the two values that the user has entered.
The attribute is not null.
The attribute is null.