Skip to content

Date input

The date input collects a calendar date and returns a Y-m-d string. Create one with DateInput::make().

DateInput::make('birthday', 'Birthday')
->max('2026-01-01')

->min() and ->max() bound the selectable range. Pass an ISO Y-m-d date string. They constrain the picker in the browser; pair them with date validation rules to enforce the range on the server.

DateInput::make('starts_at', 'Start date')
->min('2026-01-01')
->max('2026-12-31')
->rules(['date', 'after_or_equal:2026-01-01']);

DateInput 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.