Downloads
Stars
Version
composer require mimosu/nova-split-date-input
use Mimosu\NovaSplitDateInput\SplitDate;
//...
public function fields(NovaRequest $request): array
{
return [
SplitDate::make(__('Date of birth'), 'date_of_birth')
->delimiters(__('Year'), __('Month'), __('Day'))
->limitYears(1900, 2024)
->rules('required', 'date'),
];
}
The MIT License (MIT).