PHPackages                             mostafaznv/nova-morph-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. mostafaznv/nova-morph-filter

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

mostafaznv/nova-morph-filter
============================

Morph Filter for Laravel Nova

1.0.2(4y ago)3730MITVuePHP ^8.0

Since Jan 31Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/722f957e65b7223e5bea1b7dd6991bca3c7c5e26a15103ba4e041c870d816195/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f73746166617a6e762f6e6f76612d6d6f7270682d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mostafaznv/nova-morph-filter)[![Software License](https://camo.githubusercontent.com/e396acbea77d14ab36b6a3ccdee86feb8c4952604e12780071eb7daa194d858e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Total Downloads](https://camo.githubusercontent.com/c1ec870b8cbfdc76453dfd5fc3dd8c4c9020977a521a5091cd83a6a1d6060157/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f73746166617a6e762f6e6f76612d6d6f7270682d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mostafaznv/nova-morph-filter)

Morph Filter for Laravel Nova
=============================

[](#morph-filter-for-laravel-nova)

Morph filter fields for laravel nova

---

I develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect. So if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺

[![Donate](https://camo.githubusercontent.com/0b7607d470e0ccaa24269275d40233442275a42b0a714b4875bccf62f6ed5295/68747470733a2f2f6d6f73746166617a6e762e6769746875622e696f2f646f6e6174652f646f6e6174652e737667)](https://mostafaznv.github.io/donate)

---

Requirements:
-------------

[](#requirements)

- PHP 8.0 or higher
- Laravel 8.\* or higher

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

[](#installation)

Install using composer:

```
composer require mostafaznv/nova-morph-filter

```

Usage
-----

[](#usage)

```
use Mostafaznv\NovaMorphFilter\NovaMorphFilter;

class Post extends Resource
{
    ...

    public function fields(Request $request): array
    {
        return [
            ...

            MorphTo::make(trans('Owner'), 'owner')
                ->types([Admin::class, User::class])
        ];
    }

    public function filters(Request $request): array
    {
        return [
            (new NovaMorphFilter(trans('Owner'), 'owner'))
                ->types([User::class, Admin::class])
        ];
    }
}

```

---

I develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect. So if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺

[![Donate](https://camo.githubusercontent.com/0b7607d470e0ccaa24269275d40233442275a42b0a714b4875bccf62f6ed5295/68747470733a2f2f6d6f73746166617a6e762e6769746875622e696f2f646f6e6174652f646f6e6174652e737667)](https://mostafaznv.github.io/donate)

---

Changelog
---------

[](#changelog)

Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

License
-------

[](#license)

This software released under [Apache License Version 2.0](LICENSE.txt).

(C) 2022 Mostafaznv, All rights reserved.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~40 days

Total

3

Last Release

1485d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c87c061fb40fecc29bc1082fb31465ac6909045de815b44632beef415f1aeee?d=identicon)[mostafaznv](/maintainers/mostafaznv)

---

Top Contributors

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

---

Tags

filterlaravelmorphnovalaravelfilternovamorph

### Embed Badge

![Health badge](/badges/mostafaznv-nova-morph-filter/health.svg)

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

###  Alternatives

[suenerds/nova-searchable-belongs-to-filter

Searchable Nova filter for belongsTo relationships.

29516.9k](/packages/suenerds-nova-searchable-belongs-to-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)[nrml-co/nova-big-filter

A nice looking filter menu thats always open.

35310.9k](/packages/nrml-co-nova-big-filter)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

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

Multiselect filter for Laravel Nova

14179.4k2](/packages/klepak-nova-multiselect-filter)

PHPackages © 2026

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