PHPackages                             tomodo531/filterable-filters - 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. tomodo531/filterable-filters

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

tomodo531/filterable-filters
============================

A Laravel Nova filter.

2.0.0(3y ago)21.6k1[1 issues](https://github.com/Tomodo531/filterable-filters/issues)MITPHPPHP ^7.3|^8.0

Since Dec 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Tomodo531/filterable-filters)[ Packagist](https://packagist.org/packages/tomodo531/filterable-filters)[ RSS](/packages/tomodo531-filterable-filters/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

filterable-filters
==================

[](#filterable-filters)

This package can create filters based on the columns in your database. It can also filter out unused options.

```
composer require tomodo531/filterable-filters

```

[![Filterable Filters](filterable-filter.png)](filterable-filter.png)

Example:
--------

[](#example)

### Model:

[](#model)

```
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'content',
    ];

    public function categories()
    {
        return $this->belongsToMany(Category::class, 'category_article');
    }

    public function author()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}

```

### Fields:

[](#fields)

```
public function fields(NovaRequest $request)
    {
        return [
            ID::make()->sortable(),

            Text::make('Title')
                ->required(),

            Textarea::make('Content')
                ->required(),

            BelongsTo::make('Author', 'author', User::class),

            BelongsToMany::make('Categories'),
        ];
    }

```

### Filters:

[](#filters)

```
    public function filters(NovaRequest $request)
    {
        return [
            FilterableFilters::make(\App\Models\Article::class)
                ->fields([
                    'title', // if the field is not relational then just write the name of the database column.
                    'content',
                    'author' => [
                        'title' => 'name', // Works like the title in a nova resource. This is the name of the column that will be shown in the selector.
                        'primarykey' => 'id', // The primary key of the relational tabel. In this example the primary key of the auther or user table is 'id'.
                        'foreignkey' => 'user_id' // The foreign key in the nova resource model.
                    ],
                ]),
        ];
    }

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1237d ago

PHP version history (2 changes)2.0.0PHP ^7.3|^8.0

1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/43446ce12dae319857723e4e1f58060bd0387590e30f02bab27355786fee810d?d=identicon)[Tomodo531](/maintainers/Tomodo531)

---

Top Contributors

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

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/tomodo531-filterable-filters/health.svg)

```
[![Health](https://phpackages.com/badges/tomodo531-filterable-filters/health.svg)](https://phpackages.com/packages/tomodo531-filterable-filters)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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