PHPackages                             vlinde/nova-child-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. vlinde/nova-child-select

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

vlinde/nova-child-select
========================

Laravel nova child field.

1.0.6(6y ago)054MITVuePHP &gt;=7.1.0

Since Mar 17Pushed 6y agoCompare

[ Source](https://github.com/vlinde/nova-child-select)[ Packagist](https://packagist.org/packages/vlinde/nova-child-select)[ RSS](/packages/vlinde-nova-child-select/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (0)

Child select field for Laravel Nova
===================================

[](#child-select-field-for-laravel-nova)

This field allows you to dynamically fill options of the select based on value in parent select field.

Field is based on [nova-ajax-select](https://github.com/dillingham/nova-ajax-select). But instead of providing api endpoint, you can fill options by a closure function.

[![](https://user-images.githubusercontent.com/29180903/52602810-15c53900-2e32-11e9-9ade-492bfe80b234.gif)](https://user-images.githubusercontent.com/29180903/52602810-15c53900-2e32-11e9-9ade-492bfe80b234.gif)

### Install

[](#install)

```
composer require vlinde/nova-child-select

```

### Usage

[](#usage)

Class have 2 special methods on top of default Select from Laravel Nova. `parent` should be a select field or another child select this one depends on. `options` should be a callable. it will receive parent select field's value as first argument and should return an array to be shown on the child select field.

### Example

[](#example)

```
use Vlinde\ChildSelect\ChildSelect;

public function fields(Request $request)
    {
        return [

            ID::make()->sortable(),

            Select::make('Country')
                ->options(Country::all()->pluck('id','name')
                ->rules('required'),

            ChildSelect::make('City')
                ->parent('country')
                ->options(function ($value) {
                    City::whereCountry($value)->get()->pluck('id','name')
                })
                ->model(City::class)
                ->rules('required'),
        ];
    }

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~39 days

Recently: every ~59 days

Total

7

Last Release

2372d ago

### Community

Maintainers

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

---

Top Contributors

[![alvinhu](https://avatars.githubusercontent.com/u/2325860?v=4)](https://github.com/alvinhu "alvinhu (6 commits)")[![VladutVlinde](https://avatars.githubusercontent.com/u/47520073?v=4)](https://github.com/VladutVlinde "VladutVlinde (4 commits)")[![gabriela-vlinde](https://avatars.githubusercontent.com/u/57890068?v=4)](https://github.com/gabriela-vlinde "gabriela-vlinde (1 commits)")[![persteinhorst](https://avatars.githubusercontent.com/u/6418121?v=4)](https://github.com/persteinhorst "persteinhorst (1 commits)")

---

Tags

laravelselectnova

### Embed Badge

![Health badge](/badges/vlinde-nova-child-select/health.svg)

```
[![Health](https://phpackages.com/badges/vlinde-nova-child-select/health.svg)](https://phpackages.com/packages/vlinde-nova-child-select)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[ziffmedia/nova-select-plus

A Nova select field for simple and complex select inputs

96578.4k1](/packages/ziffmedia-nova-select-plus)[inspheric/nova-defaultable

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

51174.8k1](/packages/inspheric-nova-defaultable)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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