PHPackages                             marshmallow/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. marshmallow/nova-date-range-filter

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

marshmallow/nova-date-range-filter
==================================

A Laravel Nova date range filter.

v2.3.0(1y ago)12228.5k↑34.5%7MITVuePHP ^8.0

Since Sep 20Pushed 10mo ago1 watchersCompare

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

READMEChangelog (8)Dependencies (1)Versions (22)Used By (0)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)
[![Version](https://camo.githubusercontent.com/b35518e72ca8938e03eaeb7d1702238df26ef24bf354d55a9269e0a9ba332847/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f6e6f76612d646174652d72616e67652d66696c746572)](https://github.com/marshmallow-packages/nova-date-range-filter)[![Issues](https://camo.githubusercontent.com/71543f411b15d86b8e116de0ce86d8c40ca15183decd36cb5d592467fd159f39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f6e6f76612d646174652d72616e67652d66696c746572)](https://github.com/marshmallow-packages/nova-date-range-filter)[![Licence](https://camo.githubusercontent.com/9c0ca66539838a345598ace180b6cc8eb33e02223091a66216cc432fdeb9c577/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d617273686d616c6c6f772d7061636b616765732f6e6f76612d646174652d72616e67652d66696c746572)](https://github.com/marshmallow-packages/nova-date-range-filter)

Date Range Filter for Laravel Nova
----------------------------------

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

Nova filter that displays a Date Range Picker instead of a select. This field also supports dark-mode, Nova 4 and Nova 5.

### Install

[](#install)

Run this command in your nova project:

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

### How to use

[](#how-to-use)

Add the DateRangeFilter to your resource filters array.

```
public function filters(Request $request)
{
    return [
        new \Marshmallow\Filters\DateRangeFilter('created_at', 'Created date'),
    ];
}
```

### Methods

[](#methods)

#### addRange

[](#addrange)

With this method, you can set default date ranges that you use frequently. For instance ranges like today, yesterday, this month etc. Please check the example below.

```
(new DateRangeFilter('created_at', 'Created date'))
    ->addRange('Today', now()->startOfDay(), now()->endOfDay())
    ->addRange('Yesterday', now()->subDay()->startOfDay(), now()->subDay()->endOfDay())
    ->addRange('This week', now()->startOfWeek(), now()->endOfWeek())
    ->addRange('Last 7 days', now()->subDays(7)->startOfDay(), now()->endOfDay())
    ->addRange('Last 30 days', now()->subDays(30)->startOfDay(), now()->endOfDay())
    ->addRange('This month', now()->startOfMonth(), now()->endOfMonth())
    ->addRange('Last month', now()->startOfMonth()->subMonth(1), now()->startOfMonth()->subMonth(1)->endOfMonth())
    ->addRange('This year', now()->startOfYear(), now()->endOfYear()),
```

#### showMonths

[](#showmonths)

With this method, it will be possible to show more then just the current month.

#### enableTime (beta)

[](#enabletime-beta)

Enable the time selector when you select your date.

#### minTime (beta)

[](#mintime-beta)

Set a min time that can be selected.

#### maxTime (beta)

[](#maxtime-beta)

Set a max time that can be selected.

### Localization

[](#localization)

The package supports localization for all text elements. The following translations are available out of the box:

- English (en)
- Dutch (nl)
- Ukrainian (uk)

If your language doesn't work in the calendar interface (using Flatpickr localization) itself, please let us know and we will add your language.

#### Customizing Translations

[](#customizing-translations)

You can publish the translation files to customize them for your application:

```
php artisan vendor:publish --tag=nova-date-range-filter-translations
```

This will copy the translation files to your application's `resources/lang/vendor/nova-date-range-filter` directory, where you can modify them or add new languages.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance51

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~127 days

Recently: every ~33 days

Total

20

Last Release

376d ago

Major Versions

0.1.2 → v1.0.02021-05-07

0.1.3 → v2.0.02022-05-17

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

v1.0.0PHP ^7.2|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (22 commits)")[![beliolfa](https://avatars.githubusercontent.com/u/12644599?v=4)](https://github.com/beliolfa "beliolfa (18 commits)")[![avrahamappel](https://avatars.githubusercontent.com/u/33736292?v=4)](https://github.com/avrahamappel "avrahamappel (7 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (6 commits)")[![sash](https://avatars.githubusercontent.com/u/45210?v=4)](https://github.com/sash "sash (4 commits)")[![yllndritb](https://avatars.githubusercontent.com/u/17571462?v=4)](https://github.com/yllndritb "yllndritb (3 commits)")[![kakajansh](https://avatars.githubusercontent.com/u/7093483?v=4)](https://github.com/kakajansh "kakajansh (3 commits)")[![lexf](https://avatars.githubusercontent.com/u/3609979?v=4)](https://github.com/lexf "lexf (2 commits)")[![matt-daneshvar](https://avatars.githubusercontent.com/u/10030505?v=4)](https://github.com/matt-daneshvar "matt-daneshvar (1 commits)")[![niladam](https://avatars.githubusercontent.com/u/4151765?v=4)](https://github.com/niladam "niladam (1 commits)")[![bomshteyn](https://avatars.githubusercontent.com/u/4259699?v=4)](https://github.com/bomshteyn "bomshteyn (1 commits)")[![BobbyBorisov](https://avatars.githubusercontent.com/u/3647471?v=4)](https://github.com/BobbyBorisov "BobbyBorisov (1 commits)")[![tmannherz](https://avatars.githubusercontent.com/u/533798?v=4)](https://github.com/tmannherz "tmannherz (1 commits)")[![angelocala94](https://avatars.githubusercontent.com/u/6445721?v=4)](https://github.com/angelocala94 "angelocala94 (1 commits)")

---

Tags

laraveldatefilternova

### Embed Badge

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

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

###  Alternatives

[ampeco/nova-date-range-filter

A Laravel Nova date range filter.

35988.8k1](/packages/ampeco-nova-date-range-filter)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

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

This Laravel Nova package allows you to detach filters from the filter dropdown

64343.5k](/packages/outl1ne-nova-detached-filters)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)[suenerds/nova-searchable-belongs-to-filter

Searchable Nova filter for belongsTo relationships.

29516.9k](/packages/suenerds-nova-searchable-belongs-to-filter)[digital-creative/nova-pill-filter

A Laravel Nova filter that renders into clickable pills.

1859.7k1](/packages/digital-creative-nova-pill-filter)

PHPackages © 2026

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