webcoms/nova-datepicker

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

Installs: 2 454

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Vue

10.0.1 2023-06-03 11:51 UTC

This package is auto-updated.

Last update: 2025-05-31 00:40:39 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.