PHPackages                             kpolicar/nova-date-range - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kpolicar/nova-date-range

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kpolicar/nova-date-range
========================

Custom date range picker field for Laravel Nova

26176.8k↓24%17[6 issues](https://github.com/kpolicar/nova-date-range/issues)[2 PRs](https://github.com/kpolicar/nova-date-range/pulls)2PHP

Since Jan 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kpolicar/nova-date-range)[ Packagist](https://packagist.org/packages/kpolicar/nova-date-range)[ RSS](/packages/kpolicar-nova-date-range/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

Laravel Nova Daterange picker
-----------------------------

[](#laravel-nova-daterange-picker)

### Description

[](#description)

This package adds a new custom daterange picker field to [Laravel Nova](https://nova.laravel.com/).

### Example

[](#example)

[![2018-10-01 11_28_00](https://camo.githubusercontent.com/e24cc63be4d42ab5b9c31d20515d055415977c52811abd1aa56ed2722b994e4f/68747470733a2f2f7468756d62732e6766796361742e636f6d2f4b616c6569646f73636f70696354686f726f75676846656e6e6563666f782d73697a655f726573747269637465642e676966)](https://camo.githubusercontent.com/e24cc63be4d42ab5b9c31d20515d055415977c52811abd1aa56ed2722b994e4f/68747470733a2f2f7468756d62732e6766796361742e636f6d2f4b616c6569646f73636f70696354686f726f75676846656e6e6563666f782d73697a655f726573747269637465642e676966)

### Usage

[](#usage)

To add a new daterange field, simply add it to your array of fields, providing the "from-to" attributes as parameters.

```
namespace App\Nova;

// ...

use Kpolicar\DateRange\DateRange;

class Reservation extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            DateRange::make(['From', 'To']),
            // or DateRange::make('Between', ['from', 'to']),

            // ...
        ];
    }
}
```

You should also ensure the Eloquent model that your resource represents is casting the used attributes as dates.

```
namespace App\Nova;

// ...

class Reservation extends Model
{
    protected $dates = [
        'from', 'to'
    ];
}
```

### Installation

[](#installation)

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

```
composer require kpolicar/nova-date-range

```

### License

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9630422?v=4)[Klemen Poličar](/maintainers/kpolicar)[@kpolicar](https://github.com/kpolicar)

---

Top Contributors

[![kpolicar](https://avatars.githubusercontent.com/u/9630422?v=4)](https://github.com/kpolicar "kpolicar (14 commits)")[![aozisik](https://avatars.githubusercontent.com/u/735011?v=4)](https://github.com/aozisik "aozisik (12 commits)")[![drsdre](https://avatars.githubusercontent.com/u/809827?v=4)](https://github.com/drsdre "drsdre (3 commits)")[![dubcanada](https://avatars.githubusercontent.com/u/120325?v=4)](https://github.com/dubcanada "dubcanada (1 commits)")[![niladam](https://avatars.githubusercontent.com/u/4151765?v=4)](https://github.com/niladam "niladam (1 commits)")

### Embed Badge

![Health badge](/badges/kpolicar-nova-date-range/health.svg)

```
[![Health](https://phpackages.com/badges/kpolicar-nova-date-range/health.svg)](https://phpackages.com/packages/kpolicar-nova-date-range)
```

###  Alternatives

[laravel-frontend-presets/zurb-foundation

Laravel 6.0+ front-end preset for Zurb Foundation

5218.7k](/packages/laravel-frontend-presets-zurb-foundation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
