Skip to content

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')

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.

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.