PHPackages                             bourne/nova-searchable-belongs-to-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. bourne/nova-searchable-belongs-to-filter

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

bourne/nova-searchable-belongs-to-filter
========================================

Searchable Nova filter for belongsTo relationships.

v1.0.6.x-dev(5y ago)039MITVuePHP &gt;=7.1.0

Since Mar 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bournewang/nova-searchable-belongs-to-filter)[ Packagist](https://packagist.org/packages/bourne/nova-searchable-belongs-to-filter)[ RSS](/packages/bourne-nova-searchable-belongs-to-filter/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

nova-searchable-belongs-to-filter
=================================

[](#nova-searchable-belongs-to-filter)

Searchable Nova filter for belongsTo relationships.

### Demo

[](#demo)

[![demo](https://user-images.githubusercontent.com/4764281/69803436-76184200-11dc-11ea-9c19-4eacf1ba3b4c.gif)](https://user-images.githubusercontent.com/4764281/69803436-76184200-11dc-11ea-9c19-4eacf1ba3b4c.gif)

### Prerequisites

[](#prerequisites)

This package assumes you have a text-search setup for your Eloquent models. See [Laravel Scout](https://laravel.com/docs/master/scout).

### Installation

[](#installation)

`composer require suenerds/nova-searchable-belongs-to-filter`

### Usage

[](#usage)

For this example let's assume a user belongs to a department and a department has many users. To make the relationship searchable via a filter, add this to the `filters()` function of your Nova user resource:

By default the filter will display the name of the `fieldAttribute` you passed on instantiation. You can customize the name by passing it as an argument to the filter's construct function, for example `my-new-name`.

```
// app/Nova/User.php

use Suenerds\NovaSearchableBelongsToFilter\NovaSearchableBelongsToFilter

public function filters(Request $request)
{
    return [
	(new NovaSearchableBelongsToFilter('my-new-name'))
	    ->fieldAttribute('department')
	    ->filterBy('department_id')
    ];
}
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

1947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/591f091bf0a103017bde3e42c13e0edd34e0420f8341404febaf4e739c359e18?d=identicon)[bournewang](/maintainers/bournewang)

---

Top Contributors

[![anotherfrontendguy](https://avatars.githubusercontent.com/u/4764281?v=4)](https://github.com/anotherfrontendguy "anotherfrontendguy (11 commits)")[![thoresuenert](https://avatars.githubusercontent.com/u/382395?v=4)](https://github.com/thoresuenert "thoresuenert (1 commits)")

---

Tags

laravelfilternovabelongs-to

### Embed Badge

![Health badge](/badges/bourne-nova-searchable-belongs-to-filter/health.svg)

```
[![Health](https://phpackages.com/badges/bourne-nova-searchable-belongs-to-filter/health.svg)](https://phpackages.com/packages/bourne-nova-searchable-belongs-to-filter)
```

###  Alternatives

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

Searchable Nova filter for belongsTo relationships.

29626.4k](/packages/suenerds-nova-searchable-belongs-to-filter)[outl1ne/nova-detached-filters

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

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

An input filter for Laravel Nova

241.0M](/packages/outl1ne-nova-input-filter)[nrml-co/nova-big-filter

A nice looking filter menu thats always open.

36318.0k](/packages/nrml-co-nova-big-filter)[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26193.1k](/packages/awesome-nova-dependent-filter)[awesome-nova/filter-card

A Laravel Nova card.

25128.2k](/packages/awesome-nova-filter-card)

PHPackages © 2026

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