PHPackages                             oyova/laravel-nova-prepopulate-searchable - 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. oyova/laravel-nova-prepopulate-searchable

ActiveLibrary

oyova/laravel-nova-prepopulate-searchable
=========================================

A tool to allow BelongsTo searchable fields to be pre-populated with data.

v1.0.0(3y ago)020MITVuePHP ^7.4|^8.0

Since Feb 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/oyova/laravel-nova-prepopulate-searchable)[ Packagist](https://packagist.org/packages/oyova/laravel-nova-prepopulate-searchable)[ Docs](https://github.com/oyova/laravel-nova-prepopulate-searchable)[ RSS](/packages/oyova-laravel-nova-prepopulate-searchable/feed)WikiDiscussions master Synced 1mo ago

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

This repository was forked from [GeneaLabs/laravel-nova-prepopulate-searchable](https://github.com/GeneaLabs/laravel-nova-prepopulate-searchable) and they deserve all of the credit. We've only made minor changes to accommodate our software.

Prepoulate Searchable for Laravel Nova
======================================

[](#prepoulate-searchable-for-laravel-nova)

**A tool to allow BelongsTo searchable fields to be pre-populated with data**

[![Latest Version on Packagist](https://camo.githubusercontent.com/5560ce72eeb7f37c7dda1e4cfc0a54d59ae9bd760383d07b474137319b1a518f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656e65616c6162732f6e6f76612d707265706f70756c6174652d73656172636861626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexbowers/nova-prepopulate-searchable)[![Total Downloads](https://camo.githubusercontent.com/a38fae0a1a7fc6cd90297042ef5d8149d6398f44cc6b19a9650fbcb8087de549/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6578626f776572732f6e6f76612d707265706f70756c6174652d73656172636861626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/genealabs/nova-prepopulate-searchable)

[![Prepopulate Search](https://github.com/genealabs/nova-prepopulate-searchable/raw/master/screenshots/example.gif?raw=true)](https://github.com/genealabs/nova-prepopulate-searchable/blob/master/screenshots/example.gif?raw=true)

Sponsors
--------

[](#sponsors)

We thank the following sponsors for their generosity. Please take a moment to check them out:

- [LIX](https://lix-it.com)

Requirements
------------

[](#requirements)

- PHP 7.3+
- Laravel 7.0+
- Nova 3.8.4+

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require oyova/laravel-nova-prepopulate-searchable
```

Usage
-----

[](#usage)

On any `BelongsTo` fields in your resources that are `searchable()`, you can also add `prepopulate()` to the method chain and the field will be prepopulated with values to choose from.

You may optionally pass through a search query to the prepopulate method, and the keywords passed will be used for the search initially, before resetting the search to being empty (as it currently is).

### Limiting Pre-Populated Items

[](#limiting-pre-populated-items)

You can limit the prepopulated items by passing in a search string to the `prepopulated()` method like so:

```
    BelongsTo::make("Archive")
        ->searchable()
        ->prepopulate("test").
```

This would prepopulate all archives that have test in their display field.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

### [Alex Bowers](https://github.com/alexbowers)

[](#alex-bowers)

Alex is the original developer of this package and has done a great job with initial development.

### [Mike Bronner](https://github.com/mikebronner)

[](#mike-bronner)

I started using this package and didn't want it to fall to the way-side, as it helps improve the UX of Nova significantly. Alex graceously allowed me to continue development and maintenance on his original package.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

1175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c81c9c12dc22932dadc07ea8ff4af1c13f5b268577275bd959a9c122bffc1c7?d=identicon)[oyova](/maintainers/oyova)

---

Top Contributors

[![mikebronner](https://avatars.githubusercontent.com/u/1791050?v=4)](https://github.com/mikebronner "mikebronner (23 commits)")[![ryanwhitman](https://avatars.githubusercontent.com/u/6503239?v=4)](https://github.com/ryanwhitman "ryanwhitman (7 commits)")[![alexbowers](https://avatars.githubusercontent.com/u/842974?v=4)](https://github.com/alexbowers "alexbowers (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![henryavila](https://avatars.githubusercontent.com/u/8429941?v=4)](https://github.com/henryavila "henryavila (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/oyova-laravel-nova-prepopulate-searchable/health.svg)

```
[![Health](https://phpackages.com/badges/oyova-laravel-nova-prepopulate-searchable/health.svg)](https://phpackages.com/packages/oyova-laravel-nova-prepopulate-searchable)
```

###  Alternatives

[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)

PHPackages © 2026

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