adtention/nova-datepicker-field
A date picker field for Laravel Nova that adds an interactive calendar input to your resources. Drop it into your Nova resource definitions to replace the default date field with a cleaner picker UI for selecting dates in admin forms. Ideal for quick date entry in Nova admin panels.
Start by installing the package with Composer and confirming it is available to your Laravel Nova application:
composer require adtention/nova-datepicker-field
Look first at the package README and the 1.3.0 PR for the new Shift shortcut. The key thing to verify is which field configuration enables multi-date selection, because the 1.3.0 feature applies when selecting or deselecting a range of dates between a start and end date.
A good first use case is a Nova resource where admins manage multiple dates, such as availability, blackout dates, scheduled closures, or batch event dates. Add the datepicker field to the resource, enable multi-date selection as documented by the package, and test this workflow:
Shift and click an end date.Shift to deselect the range.1.3.0 is a minor feature release. The release notes do not indicate breaking changes, migrations, or config changes.
Use the field as a normal Nova form field, but treat multi-date values as structured data rather than a single scalar date. A typical pattern is:
use Adtention\NovaDatepickerField\NovaDatepickerField;
NovaDatepickerField::make('Dates')
->rules(['array'])
->rules(['dates.*' => ['date']]),
The exact class name and configuration methods should follow the package README. The important implementation pattern is to pair the picker with array validation and an Eloquent cast:
protected $casts = [
'dates' => 'array',
];
For day-to-day admin workflows, the Shift shortcut is most useful when users need to apply a contiguous range quickly:
Keep date selection UI and server-side validation aligned. The frontend Shift behavior only changes what is selected in the browser; your Laravel validation and persistence rules still need to reject invalid, missing, or unexpected dates.
For testing, cover both paths:
When upgrading, run composer update adtention/nova-datepicker-field, clear Nova’s compiled assets/caches if your deployment requires it, and smoke-test the multi-date picker in the Nova UI. No data migration is implied by 1.3.0.
array or json and validated with dates.* rules.How can I help you explore Laravel packages today?