PHPackages                             idez/nova-date-range-filter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. idez/nova-date-range-filter

ActiveLibrary[Search &amp; Filtering](/categories/search)

idez/nova-date-range-filter
===========================

A Laravel Nova date range filter.

2.2.0(2y ago)293.1k↑68.1%6[1 PRs](https://github.com/idezdigital/nova-date-range-filter/pulls)MITVuePHP ^8.1

Since Oct 22Pushed 2y agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (15)Used By (0)

Laravel Nova Date Range Filter
==============================

[](#laravel-nova-date-range-filter)

[![License](https://camo.githubusercontent.com/2a7745a824aef0223f7fbbdf9e49e81ab21d867a654bab2c42abfbe2de950273/68747470733a2f2f706f7365722e707567782e6f72672f6964657a2f6e6f76612d646174652d72616e67652d66696c7465722f6c6963656e7365)](https://packagist.org/packages/idez/nova-date-range-filter)[![Latest Stable Version](https://camo.githubusercontent.com/61301659f5aa3df21e6b2f81c430301d26ebe004e8e2cdba141d7f2f2f72d348/68747470733a2f2f706f7365722e707567782e6f72672f6964657a2f6e6f76612d646174652d72616e67652d66696c7465722f762f737461626c65)](https://packagist.org/packages/idez/nova-date-range-filter)[![Total Downloads](https://camo.githubusercontent.com/c45c6e7f13dd3ecca07451037e383413070e210f80e3e62b6d967a02f82687f3/68747470733a2f2f706f7365722e707567782e6f72672f6964657a2f6e6f76612d646174652d72616e67652d66696c7465722f646f776e6c6f616473)](https://packagist.org/packages/idez/nova-date-range-filter)

About
-----

[](#about)

This is a configurable and ready to use filter for Laravel Nova 4 based on Nova's own date filter that displays a date range picker.

Installation
------------

[](#installation)

To install the filter run the following command in your Laravel Nova project:

```
composer require idez/nova-date-range-filter
```

Usage
-----

[](#usage)

Simply add this filter to the `filters` method in your Nova resource.

```
use Illuminate\Http\Request;
use Idez\DateRangeFilter\DateRangeFilter;

class CustomResource extends Resource
{
    public function filters(Request $request): array
    {
        return [
            new DateRangeFilter(),
        ];
    }
}
```

By default, this will create a filter named "Created at" which applies the selected date range to the `created_at`database column.

Customization
-------------

[](#customization)

The filter takes up to three arguments to customize it to your needs.

  **Parameter** **Type** **Description** **Default**   Name String The name of the filter how it should appear in the filter dropdown list. "Created at"   Column String The name of the database column on which the selected date range should be applied to. Illuminate\\Database\\Eloquent\\Model::CREATED\_AT   Settings Array An array of settings to customize the filter. See the configuration section below for details. \[\] Configuration
-------------

[](#configuration)

All available settings are provided by the included `Config` enum. See the full example below how to use it.

  **Setting** **Type** **Description** **Default**   ALLOW\_INPUT Boolean Allows the user to enter a date directly into the input field. false   DATE\_FORMAT String  A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in [this table](https://flatpickr.js.org/formatting).  "Y-m-d"   DEFAULT\_DATE Array  Sets the initial selected dates.

 Supply an array of date strings which follow the format `Y-m-d`.  null   DISABLED Boolean Entirely disables the filter. false   ENABLE\_TIME Boolean Enables the time picker. false   ENABLE\_SECONDS Boolean Enables seconds in the time picker. false   FIRST\_DAY\_OF\_WEEK Integer  Sets the first day of the week (0 = Sunday, 1 = Monday etc.). If a custom locale is used, this setting has no effect.  0   LOCALE String  Localizes the filter. Available locales can be found [here](https://github.com/flatpickr/flatpickr/tree/master/src/l10n).  "default"   MAX\_DATE String The maximum date that a user can pick to (inclusive). null   MIN\_DATE String The minimum date that a user can start picking from (inclusive). null   PLACEHOLDER String The text that is shown in the empty input box. \_\_('Choose date range')   SHORTHAND\_CURRENT\_MONTH Boolean Shows the month using the shorthand version (e.g. Sep instead of September). false   SHOW\_MONTHS Integer The number of months that should be showed. 1   TIME24HR Boolean Displays the time picker in 24 hour mode without AM/PM selection when enabled. false   WEEK\_NUMBERS Boolean Enables the display of week numbers in the calendar. false Full Example
------------

[](#full-example)

```
use Illuminate\Http\Request;
use Idez\DateRangeFilter\DateRangeFilter;
use Idez\DateRangeFilter\Enums\Config;

class CustomResource extends Resource
{
    public function filters(Request $request): array
    {
        return [
            new DateRangeFilter('Created at', 'created_at', [
                Config::ALLOW_INPUT => false,
                Config::DATE_FORMAT => 'Y-m-d',
                Config::DEFAULT_DATE => ['2019-06-01', '2019-06-30'],
                Config::DISABLED => false,
                Config::ENABLE_TIME => false,
                Config::ENABLE_SECONDS => false,
                Config::FIRST_DAY_OF_WEEK => 0,
                Config::LOCALE => 'default',
                Config::MAX_DATE => '2019-12-31',
                Config::MIN_DATE => '2019-01-01',
                Config::PLACEHOLDER => __('Choose date range'),
                Config::SHORTHAND_CURRENT_MONTH => false,
                Config::SHOW_MONTHS => 1,
                Config::TIME24HR => false,
                Config::WEEK_NUMBERS => false,
            ]),
        ];
    }
}
```

Screenshots
-----------

[](#screenshots)

  **Default configuration** **Showing 2 months**   [![Date range filter (default)](docs/assets/img/date-range-filter-default.png)](docs/assets/img/date-range-filter-default.png) [![Date range filter (2 months)](docs/assets/img/date-range-filter-2-months.png)](docs/assets/img/date-range-filter-2-months.png) Contributing
------------

[](#contributing)

Contributions are welcome, explain the issue/feature that you want to solve/add and back your code up with tests. Happy coding!

License
-------

[](#license)

This package was originally developed by  however they have abandoned the package. The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 58.2% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~126 days

Recently: every ~264 days

Total

14

Last Release

763d ago

Major Versions

1.3.3 → 2.0.02022-06-10

PHP version history (5 changes)1.0.0PHP &gt;=7.1.0

1.0.1PHP ^7.1

1.3.2PHP &gt;=7.1

2.0.0PHP ^8.0

2.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec8f543ee45490cb981735eb44b00ee6edbdcab9dcbb799706b390dede4e97a?d=identicon)[rafaellaurindo](/maintainers/rafaellaurindo)

![](https://www.gravatar.com/avatar/56db241aa76bfad4e95218a482a4b70506ffb7eae84ceaed4163f94f9e1e88d5?d=identicon)[idez](/maintainers/idez)

---

Top Contributors

[![jhae-de](https://avatars.githubusercontent.com/u/28291021?v=4)](https://github.com/jhae-de "jhae-de (39 commits)")[![rafaellaurindo](https://avatars.githubusercontent.com/u/25041169?v=4)](https://github.com/rafaellaurindo "rafaellaurindo (6 commits)")[![schroedan](https://avatars.githubusercontent.com/u/4107232?v=4)](https://github.com/schroedan "schroedan (6 commits)")[![sp4r74cus](https://avatars.githubusercontent.com/u/864292?v=4)](https://github.com/sp4r74cus "sp4r74cus (6 commits)")[![niekbr](https://avatars.githubusercontent.com/u/10487997?v=4)](https://github.com/niekbr "niekbr (4 commits)")[![cyruscollier](https://avatars.githubusercontent.com/u/6005043?v=4)](https://github.com/cyruscollier "cyruscollier (2 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (1 commits)")[![jcsoriano](https://avatars.githubusercontent.com/u/5937317?v=4)](https://github.com/jcsoriano "jcsoriano (1 commits)")[![pedro-santiago](https://avatars.githubusercontent.com/u/6331494?v=4)](https://github.com/pedro-santiago "pedro-santiago (1 commits)")[![arthurtavaresdev](https://avatars.githubusercontent.com/u/40744942?v=4)](https://github.com/arthurtavaresdev "arthurtavaresdev (1 commits)")

---

Tags

laraveldatefilterrangenovaIdez

### Embed Badge

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

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

###  Alternatives

[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

16179.1k](/packages/pos-lifestyle-laravel-nova-date-range-filter)[ampeco/nova-date-range-filter

A Laravel Nova date range filter.

35988.8k1](/packages/ampeco-nova-date-range-filter)[digital-creative/nova-range-input-filter

A Laravel Nova range input filter.

18209.3k1](/packages/digital-creative-nova-range-input-filter)[suenerds/nova-searchable-belongs-to-filter

Searchable Nova filter for belongsTo relationships.

29516.9k](/packages/suenerds-nova-searchable-belongs-to-filter)[marshmallow/nova-date-range-filter

A Laravel Nova date range filter.

12228.5k](/packages/marshmallow-nova-date-range-filter)[digital-creative/nova-slider-filter

A Laravel Nova filter for picking range between a min/max value.

1369.1k](/packages/digital-creative-nova-slider-filter)

PHPackages © 2026

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