PHPackages                             kirschbaum-development/nova-inline-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. kirschbaum-development/nova-inline-select

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

kirschbaum-development/nova-inline-select
=========================================

An inline select field for Laravel Nova apps.

2.0.1(4y ago)95538.4k—6.9%30[10 issues](https://github.com/kirschbaum-development/nova-inline-select/issues)[2 PRs](https://github.com/kirschbaum-development/nova-inline-select/pulls)1MITPHPPHP ^8.0CI failing

Since Apr 5Pushed 4y ago15 watchersCompare

[ Source](https://github.com/kirschbaum-development/nova-inline-select)[ Packagist](https://packagist.org/packages/kirschbaum-development/nova-inline-select)[ Docs](https://github.com/kirschbaum-development/nova-inline-select)[ RSS](/packages/kirschbaum-development-nova-inline-select/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (13)Used By (1)

[![Nova Inline Select banner](https://raw.githubusercontent.com/kirschbaum-development/nova-inline-select/master/screenshots/banner.jpg)](https://raw.githubusercontent.com/kirschbaum-development/nova-inline-select/master/screenshots/banner.jpg)

An inline select field for Nova apps
====================================

[](#an-inline-select-field-for-nova-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d35853655a598a061e8d46828a6c6e386fd91319015fd9eb361cca806992971/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b69727363686261756d2d646576656c6f706d656e742f6e6f76612d696e6c696e652d73656c6563742e737667)](https://packagist.org/packages/kirschbaum-development/nova-inline-select)[![Total Downloads](https://camo.githubusercontent.com/d4af45e39596c55ab3175831fc6bc6a965118d67521c6e89f739ec70259acfd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b69727363686261756d2d646576656c6f706d656e742f6e6f76612d696e6c696e652d73656c6563742e737667)](https://packagist.org/packages/kirschbaum-development/nova-inline-select)[![Actions Status](https://github.com/kirschbaum-development/nova-inline-select/workflows/CI/badge.svg)](https://github.com/kirschbaum-development/nova-inline-select/actions)

This package contains a Nova select field that can update field values inline from the index and detail views.

[![screenshot of the inline select field](screenshots/pending.png)](screenshots/pending.png)[![screenshot of the inline select field ready for submitting](screenshots/approved.png)](screenshots/approved.png)

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

[](#requirements)

Nova VersionInline Select Versionv1-3`^1.0`v4`^2.0`This Nova field requires Nova 1.0 or higher.

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

[](#installation)

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

```
composer require kirschbaum-development/nova-inline-select
```

Usage
-----

[](#usage)

Next you can use the `KirschbaumDevelopment\Nova\InlineSelect` field in your Nova resource:

```
namespace App\Nova;

use KirschbaumDevelopment\Nova\InlineSelect;

class User extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            InlineSelect::make('Status'),

            // ...
        ];
    }
}
```

Use the `InlineSelect` field just like Nova's `Select` field. But now for the magic...

### Inline editing

[](#inline-editing)

By default, the inline select field works just like a normal select field. To enable the inline editing capabilities we can use the `inlineOnIndex()` and `inlineOnDetail()` methods.

```
InlineSelect::make('Status')->options($options)
    ->inlineOnIndex()
    ->inlineOnDetail(),
```

The above inline select field will show up on both the index and detail views. When making a change to the select field, a button will display next to the field allowing you to commit the change. If you would rather the field auto-submits the change, simply add `enableOneStepOnIndex()` or `enableOneStepOnDetail()`.

```
InlineSelect::make('Status')->options($options)
    ->inlineOnIndex()
    ->enableOneStepOnIndex(),
```

The inline select field on the index view now will auto-submit the changed value. You can also continue to use the old `disableTwoStepOnIndex()` method if you choose, which just calls `enableOneStepOnIndex()` under the hood.

You can also add the inline select to Lenses. Use the `inlineOnLens()` method. Auto-submitting works the same as well with `enableOneStepOnLens()`.

```
InlineSelect::make('Status')->options($options)
    ->inlineOnLens()
    ->enableOneStepOnLens(),
```

### Display using labels

[](#display-using-labels)

This method works just like Nova's select field. It will display the option value rather than the option key.

```
InlineSelect::make('Status')->options($options)
    ->displayUsingLabels(),
```

### Using closures as `options()` argument

[](#using-closures-as--options-argument)

You may pass a closure to the options method. It must return a key value pair array.

```
InlineSelect::make('Status')
    ->options(function () {
        return [
            'one' => 'foo',
            'two' => 'bar',
        ];
    }),
```

### Validation caveats

[](#validation-caveats)

In the case where fields on a model are `required`, which is likely, an extra step needs to be taken to ensure the inline select update persists and doesn't throw an error. The validation rule `sometimes` needs to be added to the `updateRules()` method on any field that is `required`.

```
Text::make('Email')
    ->rules('required', 'email')
    ->updateRules('sometimes'),
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Brandon Ferens](https://github.com/brandonferens)

Sponsorship
-----------

[](#sponsorship)

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com) or [join us](https://careers.kirschbaumdevelopment.com)!

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~114 days

Recently: every ~247 days

Total

11

Last Release

1502d ago

Major Versions

1.0.7 → 2.0.02022-04-22

1.x-dev → 2.0.12022-05-23

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f56743d64d77958321d43b2df49e9696d19c9dd99995730c5c38ccae50408fa?d=identicon)[Kirschbaum](/maintainers/Kirschbaum)

![](https://avatars.githubusercontent.com/u/1819546?v=4)[Brandon Ferens](/maintainers/brandonferens)[@brandonferens](https://github.com/brandonferens)

---

Top Contributors

[![brandonferens](https://avatars.githubusercontent.com/u/1819546?v=4)](https://github.com/brandonferens "brandonferens (89 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (1 commits)")[![4n70w4](https://avatars.githubusercontent.com/u/38257723?v=4)](https://github.com/4n70w4 "4n70w4 (1 commits)")[![LorenzoSapora](https://avatars.githubusercontent.com/u/25519274?v=4)](https://github.com/LorenzoSapora "LorenzoSapora (1 commits)")[![luisdalmolin](https://avatars.githubusercontent.com/u/403446?v=4)](https://github.com/luisdalmolin "luisdalmolin (1 commits)")[![noahlocke](https://avatars.githubusercontent.com/u/6596677?v=4)](https://github.com/noahlocke "noahlocke (1 commits)")

---

Tags

laravelnova

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kirschbaum-development-nova-inline-select/health.svg)

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3453.7M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

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

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

Boost your Laravel Nova with the TinyMCE editor.

17186.3k1](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

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

11273.0k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1198.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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