pppcreative/date-picker

Laravel Nova Mupltiple Date Picker - multiple graphs date pick , refresh graphs, show logged user data

1.2 2023-06-23 10:33 UTC

This package is auto-updated.

Last update: 2025-03-23 14:53:08 UTC


README

Functions: multiple graphs date pick, refresh graphs, show logged user data",

Installation

composer require pppcreative/date-picker

php artisan vendor:publish --tag=date-picker

Usage

use Wame\DatePicker\DatePicker;

(new DatePicker())->width('full')

// Options:
->userDisable(true) // default false
->addParameter('address')
->getDateRange()  // define count days in config

Config

You can define count days in config/wame-datepicker.php

    'date' => [
        "7",
        "30",
        "60",
        "90",
        "365",
    ]

Translates

You can edit translates in nova/sk.json Example: "address": "Adresa",

Example for use:

public function cards()
{
    return [
        (new DatePicker())
            ->width('full')
            ->userDisable(false)
            ->addParameter('id')
            ->getDateRange(),
    ]
}