Download the PHP package adtention/nova-datepicker-filter without Composer
On this page you can find all versions of the php package adtention/nova-datepicker-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adtention/nova-datepicker-filter
More information about adtention/nova-datepicker-filter
Files in adtention/nova-datepicker-filter
Package nova-datepicker-filter
Short Description A Laravel Nova date field built as a thin wrapper around vuepic/vue-datepicker.
License MIT
Informations about the package nova-datepicker-filter
Datepicker Filter for Laravel Nova
A Laravel Nova date filter built as a thin wrapper around @vuepic/vue-datepicker.
| Compatibility | Version |
|---|---|
| Laravel Nova | ^5.0 |
| PHP | ^8.4 |
Installation
Usage
Create a filter class that extends Adtention\DatepickerFilter\DatepickerFilter, then register it in your Nova resource.
Register the filter in your resource:
Range filter ([start, end])
In range mode, the filter value passed to apply() is an array with two values:
$value[0]= start date (YYYY-MM-DDornull)$value[1]= end date (YYYY-MM-DDornull)
Usage in resource:
Available fluent methods
single()→ single date mode (default)range()→ range modemode(DatepickerFilter::MODE_SINGLE | DatepickerFilter::MODE_RANGE)locale('da')placeholder('Choose date')(single mode)startPlaceholder('Start')/endPlaceholder('End')rangePlaceholders('Start', 'End')
Supported scope
This package is intentionally lightweight for public package use: it wraps @vuepic/vue-datepicker for Nova, but does not expose the full upstream prop/slot API.
- Input is normalized to
YYYY-MM-DDbefore submission. - The UI automatically follows Nova light/dark mode styling.
- Advanced vue-datepicker features (for example custom slots, full range/time presets, and all component props) are not guaranteed to be configurable via PHP at this time.
If you need additional functionality, pull requests are welcome as long as the API stays Nova-friendly.
Development
Build for local environment:
Build for release:
Run tests:
Run a specific test:
License
MIT
Credits
Developed by Adtention A/S
