PHPackages                             kfriars/searchable-select - 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. [Admin Panels](/categories/admin)
4. /
5. kfriars/searchable-select

ActiveLibrary[Admin Panels](/categories/admin)

kfriars/searchable-select
=========================

A Laravel Nova field.

1.3.2(2y ago)02.1k2MITVuePHP &gt;=7.1.0

Since Jun 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kfriars/searchable-select)[ Packagist](https://packagist.org/packages/kfriars/searchable-select)[ RSS](/packages/kfriars-searchable-select/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Disclaimer
==========

[](#disclaimer)

⚠️ This is an archive for the package . No maintenance will be done on this package. ⚠️

Laravel Nova Searchable Select Field
------------------------------------

[](#laravel-nova-searchable-select-field)

A Searchable Select Field for Laravel Nova. This field joins the functionalities of the `BelongsTo`field and `Select` field.

Basically a regular Select field where you specify the resource you want to search for and no "relationships" are needed. This means, you can use it also in additional JSON fields in your database.

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

[](#installation)

*Composer*

```
composer require kfriars/searchable-select

```

Usage
-----

[](#usage)

Just like the regular select field, but instead of the `options` method you provide the `resource` method with your resource name.

```
use Kfriars\SearchableSelect\SearchableSelect;
...

SearchableSelect::make('Content', 'content_id')->resource("contents")
... or
SearchableSelect::make("Content", "content_id")->resource(\App\Nova\Content::class)
```

[![](usage.gif)](usage.gif)

You can pass all the regular options like:

```
SearchableSelect::make('Content', 'content_id')
    ->resource("contents")
    ->help("Help text")
    ->displayUsingLabels()
    ->nullable()
```

But also three additional options:

```
SearchableSelect::make('Content', 'content_id')
    ->resource("contents")
    ->label("custom_label_field") // Defaults to the static $title attribute of the resource class
    ->labelPrefix("custom_prefix_field") // Allows you to prefix the label field with one other field, i.e. "code":"label"
    ->value("custom_value_field") // Defaults to 'id'
```

You can now also choose the multiple option. Needs a `text` or `json` field in the database.

```
SearchableSelect::make('Content', 'content_id')
    ->resource("contents")
    ->multiple()
    ->displayUsingLabels()
    ->nullable()
```

[![](multiple.gif)](multiple.gif)

Another option is to define the maximum number of items shown in the search. (Default: 20)

```
SearchableSelect::make("Content", "content_id")
                ->resource("contents")
                ->max(10)
```

You can use the base model's search method instead of the Nova resource's search method with `useBaseSearch()`.

```
SearchableSelect::make('Content', 'content_id')
    ->resource("contents")
    ->useBaseSearch()
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

735d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3378675?v=4)[Kurt](/maintainers/kfriars)[@kfriars](https://github.com/kfriars)

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/kfriars-searchable-select/health.svg)

```
[![Health](https://phpackages.com/badges/kfriars-searchable-select/health.svg)](https://phpackages.com/packages/kfriars-searchable-select)
```

###  Alternatives

[david-griffiths/nova-dark-theme

A dark theme for Laravel Nova

71600.0k](/packages/david-griffiths-nova-dark-theme)[pdmfc/nova-action-button

A Laravel Nova field to run actions.

37753.3k1](/packages/pdmfc-nova-action-button)[khalin/nova-link-field

A Laravel Nova Link field.

31587.5k2](/packages/khalin-nova-link-field)[cloudcake/nova-fixed-bars

A Laravel Nova package to add a responsive and/or fixed sidebar and navigation bar to the Nova admin UI.

33215.1k2](/packages/cloudcake-nova-fixed-bars)[stephenlake/nova-fixed-bars

A Laravel Nova package to add a responsive and/or fixed sidebar and navigation bar to the Nova admin UI.

3377.9k](/packages/stephenlake-nova-fixed-bars)

PHPackages © 2026

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