PHPackages                             faisalawanisee/laravel-nova-date-range-filter-nova-4 - 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. faisalawanisee/laravel-nova-date-range-filter-nova-4

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

faisalawanisee/laravel-nova-date-range-filter-nova-4
====================================================

A Laravel Nova date range filter.

0103[1 issues](https://github.com/Faisalawanisee/laravel-nova-date-range-filter-nova-4/issues)Vue

Since May 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Faisalawanisee/laravel-nova-date-range-filter-nova-4)[ Packagist](https://packagist.org/packages/faisalawanisee/laravel-nova-date-range-filter-nova-4)[ RSS](/packages/faisalawanisee-laravel-nova-date-range-filter-nova-4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

About
-----

[](#about)

This is a configurable and ready to use filter for Laravel Nova 2 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 faisalawanisee/laravel-nova-date-range-filter-nova-4
```

Usage
-----

[](#usage)

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

```
use Illuminate\Http\Request;
use FaisalKhalid\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 FaisalKhalid\DateRangeFilter\DateRangeFilter;
use FaisalKhalid\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)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/313a7325f1f0a449febf3a0e62f2d2fa5c7cfa454458395d50220f16769afbf3?d=identicon)[Faisalawanisee](/maintainers/Faisalawanisee)

---

Top Contributors

[![Faisalawanisee](https://avatars.githubusercontent.com/u/2613787?v=4)](https://github.com/Faisalawanisee "Faisalawanisee (4 commits)")

### Embed Badge

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

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

###  Alternatives

[axllent/silverstripe-trailing-slash

Ensure that a single trailing slash is always added to the URL

11182.6k5](/packages/axllent-silverstripe-trailing-slash)[yeesoft/yii2-comments

Comments Module For Yii2 Framework

227.8k2](/packages/yeesoft-yii2-comments)

PHPackages © 2026

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