PHPackages                             famcare/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. famcare/searchable-select

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

famcare/searchable-select
=========================

A Laravel Nova field.

1.3.2(1y ago)11.7k↓33.3%MITVuePHP &gt;=7.1.0

Since Jun 30Pushed 1y ago3 watchersCompare

[ Source](https://github.com/famcare/nova-searchable-select)[ Packagist](https://packagist.org/packages/famcare/searchable-select)[ RSS](/packages/famcare-searchable-select/feed)WikiDiscussions main Synced 1mo ago

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

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 sloveniangooner/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 Sloveniangooner\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

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bda733a21c23751cd06e6fb66499e827cade8340b351874dd7469eefc6f6d9f5?d=identicon)[Husam-Almiyah](/maintainers/Husam-Almiyah)

---

Top Contributors

[![Husam-Almiyah](https://avatars.githubusercontent.com/u/121790274?v=4)](https://github.com/Husam-Almiyah "Husam-Almiyah (1 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  Alternatives

[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)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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