Range

//form component fields() method
Range::make('Range')
->colspan(6)
->default(3)//set a default value if none exists on the model
->min(1)
->max('100')
->step(1)
->rules('required|integer')
// The example will output
<input type="range" step="1" min="1" max="100" value="3" />Search for /* Range */ in the theme file
These methods apply the equivalent input attribute on the field.
->step(float $step)
->min(float $min)
->max(float $max)
Last updated
Was this helpful?