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

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

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

Searchable Nova filter for belongsTo relationships.

v2.0.3(1y ago)29626.4k—1.5%9[6 issues](https://github.com/suenerds/nova-searchable-belongs-to-filter/issues)[1 PRs](https://github.com/suenerds/nova-searchable-belongs-to-filter/pulls)MITPHPPHP &gt;=8.0

Since Nov 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/suenerds/nova-searchable-belongs-to-filter)[ Packagist](https://packagist.org/packages/suenerds/nova-searchable-belongs-to-filter)[ RSS](/packages/suenerds-nova-searchable-belongs-to-filter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

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

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

Searchable Nova filter for belongsTo relationships.

### ⚠️⚠️⚠️ Attention ⚠️⚠️⚠️

[](#️️️-attention-️️️)

This package is not needed with Nova 4, you can achieve the same behaviour with:

```
BelongsTo::make('User')
    ->searchable()
    ->filterable(),
```

---

### 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

46

—

FairBetter than 92% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 56.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

Every ~205 days

Recently: every ~82 days

Total

10

Last Release

564d ago

Major Versions

v1.0.5 → v2.0.02024-01-24

PHP version history (2 changes)v1.0PHP &gt;=7.1.0

v2.0.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![michaelklopf](https://avatars.githubusercontent.com/u/2892138?v=4)](https://github.com/michaelklopf "michaelklopf (17 commits)")[![anotherfrontendguy](https://avatars.githubusercontent.com/u/4764281?v=4)](https://github.com/anotherfrontendguy "anotherfrontendguy (11 commits)")[![stefblokdijk](https://avatars.githubusercontent.com/u/15145744?v=4)](https://github.com/stefblokdijk "stefblokdijk (1 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/suenerds-nova-searchable-belongs-to-filter/health.svg)

```
[![Health](https://phpackages.com/badges/suenerds-nova-searchable-belongs-to-filter/health.svg)](https://phpackages.com/packages/suenerds-nova-searchable-belongs-to-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)[optimistdigital/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45316.3k](/packages/optimistdigital-nova-multiselect-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)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

16181.8k](/packages/pos-lifestyle-laravel-nova-date-range-filter)

PHPackages © 2026

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