A datepicker field with week numbers for Laravel Nova using flatpickr.
You can install the package in to a Laravel app that uses Nova via composer:
composer require webcoms/nova-datepicker
Now you can use the Datepicker Field with Nova. Make the Datepicker in the fields
method like any other field in a Resource
. Add showWeekNumbers()
to display week numbers in the calendar.
// in a Nova Resource
use WebcomMedia\Datepicker\Datepicker;
public function fields(Request $request)
{
return [
Datepicker::make('Deliverable at', 'deliverable_at')
->showWeekNumbers(),
]
}
The MIT License (MIT). Please see License File for more information.