webcoms/nova-datepicker

A datepicker field with week numbers for Laravel Nova using flatpickr.

10.0.1 2023-06-03 11:51 UTC

This package is auto-updated.

Last update: 2024-05-03 14:13:12 UTC


README

A datepicker field with week numbers for Laravel Nova using flatpickr.

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require webcoms/nova-datepicker

Usage

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(),
    ]
}

License

The MIT License (MIT). Please see License File for more information.