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

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

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

A Laravel Nova date range filter.

1.3.3(4y ago)16181.8k↓53.4%55[11 issues](https://github.com/pos-lifestyle/laravel-nova-date-range-filter/issues)[4 PRs](https://github.com/pos-lifestyle/laravel-nova-date-range-filter/pulls)MITVuePHP &gt;=7.1

Since Oct 22Pushed 2y ago3 watchersCompare

[ Source](https://github.com/pos-lifestyle/laravel-nova-date-range-filter)[ Packagist](https://packagist.org/packages/pos-lifestyle/laravel-nova-date-range-filter)[ RSS](/packages/pos-lifestyle-laravel-nova-date-range-filter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

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

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

[![Packagist](https://camo.githubusercontent.com/151993930c7b1ad1aa7314c4ceb22bb6ee5fd10392af9c402b8d6c0d1300b19c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f732d6c6966657374796c652f6c61726176656c2d6e6f76612d646174652d72616e67652d66696c746572)](https://camo.githubusercontent.com/151993930c7b1ad1aa7314c4ceb22bb6ee5fd10392af9c402b8d6c0d1300b19c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f732d6c6966657374796c652f6c61726176656c2d6e6f76612d646174652d72616e67652d66696c746572)[![Packagist Version](https://camo.githubusercontent.com/7b2b9109999684dc8171062fc081d8a2714fc1b7f9112334e9c2aaec7d485c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f732d6c6966657374796c652f6c61726176656c2d6e6f76612d646174652d72616e67652d66696c746572)](https://camo.githubusercontent.com/7b2b9109999684dc8171062fc081d8a2714fc1b7f9112334e9c2aaec7d485c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f732d6c6966657374796c652f6c61726176656c2d6e6f76612d646174652d72616e67652d66696c746572)

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 pos-lifestyle/laravel-nova-date-range-filter
```

Usage
-----

[](#usage)

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

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

36

—

LowBetter than 79% of packages

Maintenance6

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~64 days

Total

11

Last Release

1801d ago

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

1.0.1PHP ^7.1

1.3.2PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38218425?v=4)[POS lifestyle GmbH](/maintainers/pos-lifestyle)[@pos-lifestyle](https://github.com/pos-lifestyle)

---

Top Contributors

[![jhae-de](https://avatars.githubusercontent.com/u/28291021?v=4)](https://github.com/jhae-de "jhae-de (39 commits)")[![schroedan](https://avatars.githubusercontent.com/u/4107232?v=4)](https://github.com/schroedan "schroedan (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)")[![jcsoriano](https://avatars.githubusercontent.com/u/5937317?v=4)](https://github.com/jcsoriano "jcsoriano (1 commits)")

---

Tags

laraveldatefilterrangenova

### Embed Badge

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

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45902.0k5](/packages/outl1ne-nova-multiselect-filter)[ampeco/nova-date-range-filter

A Laravel Nova date range filter.

351.0M1](/packages/ampeco-nova-date-range-filter)[optimistdigital/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45316.3k](/packages/optimistdigital-nova-multiselect-filter)[suenerds/nova-searchable-belongs-to-filter

Searchable Nova filter for belongsTo relationships.

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

A Laravel Nova range input filter.

17222.1k1](/packages/digital-creative-nova-range-input-filter)

PHPackages © 2026

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