Time input
The time input collects a time of day and returns a string such as 14:30.
TimeInput::make('starts_at', 'Start time') ->min('08:00') ->max('18:00')- autoFocus:false
- columnWidth:"md"
- conditions:null
- dependsOnAny:false
- dependsOnKeys:null
- disabled:false
- editablePrefill:false
- helperText:null
- hidden:false
- label:"Start time"
- max:"18:00"
- min:"08:00"
- name:"starts_at"
- prefillRefreshOn:null
- prefillResetOn:null
- readOnly:false
- required:false
- step:null
- tabIndex:null
- tooltip:null
- value:null
Seconds and step
Section titled “Seconds and step”Use ->step() to control the picker’s time granularity. The value is seconds.
TimeInput::make('starts_at', 'Start time') ->step(900);TimeInput returns a string. It does not cast to a date object because a time without a date is not
an instant.
Common options
Section titled “Common options”TimeInput shares label, default value, required, disabled, read-only, and visibility options with
every field — see Fields. For validation and conditional behavior, see
Validation and Conditional fields.