How to use
The number field allows the user to input numeric values.
Number::make('Distance', 'distance') ->min(10) ->max(100) ->rules(['required'])
Available methods
min(int $min): static
Set the minimum accepted value.
Number::make() ->min(10)
max(int $max): static
Set the maximum accepted value.
Number::make() ->max(100)
precision(int $precision): static
Set the precision of floating point values.
Number::make() ->precision(3)
Inherited methods
The Textarea field extends the base field and inherits all of its methods.