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

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

roberoz/nova-inline-select
==========================

An inline select field for Laravel Nova apps - Fixed inline update. (Forked from `kirschbaum-development/nova-inline-select`)

0278↓50%PHP

Since Sep 18Pushed 8mo agoCompare

[ Source](https://github.com/RoberOz/nova-inline-select)[ Packagist](https://packagist.org/packages/roberoz/nova-inline-select)[ RSS](/packages/roberoz-nova-inline-select/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![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

21

—

LowBetter than 18% of packages

Maintenance43

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/960087a59663d99ad655893539def3e4942a464815dc513c162a1b8801c69601?d=identicon)[RoberOz](/maintainers/RoberOz)

---

Top Contributors

[![brandonferens](https://avatars.githubusercontent.com/u/1819546?v=4)](https://github.com/brandonferens "brandonferens (89 commits)")[![RoberOz](https://avatars.githubusercontent.com/u/60070881?v=4)](https://github.com/RoberOz "RoberOz (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 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)")[![LorenzoSapora](https://avatars.githubusercontent.com/u/25519274?v=4)](https://github.com/LorenzoSapora "LorenzoSapora (1 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)")

---

Tags

inline-selectlaravellaravel-novalaravel-nova-fieldnova-inline-select

### Embed Badge

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

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

PHPackages © 2026

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