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

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

marshmallow/nova-inline-select
==============================

A Laravel Nova field.

v5.1.0(1y ago)44.2k↓34.2%1MITVuePHP ^8.1

Since Mar 16Pushed 3w ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/nova-inline-select)[ Packagist](https://packagist.org/packages/marshmallow/nova-inline-select)[ RSS](/packages/marshmallow-nova-inline-select/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Nova Inline Select
==================

[](#nova-inline-select)

[![Version](https://camo.githubusercontent.com/cd21444ca17d62b236c410fbf46128640622e0afce72b7c5c0486c8eaee385b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f6e6f76612d696e6c696e652d73656c656374)](https://packagist.org/packages/marshmallow/nova-inline-select)[![Total Downloads](https://camo.githubusercontent.com/aad8c39244196e84e945115a2a8a1811591f3439a36707c5e453272484b05b10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f6e6f76612d696e6c696e652d73656c656374)](https://packagist.org/packages/marshmallow/nova-inline-select)[![Issues](https://camo.githubusercontent.com/278011120cdc18d240342f11067a73c43579ff3dafb617805a5c57cfd72ecfd4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f6e6f76612d696e6c696e652d73656c656374)](https://github.com/marshmallow-packages/nova-inline-select/issues)[![Licence](https://camo.githubusercontent.com/3f3a3bb1dc1e2c12abfb5e37ecf79ebeb0324604ec347036f2538f6b74bd28b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d617273686d616c6c6f772d7061636b616765732f6e6f76612d696e6c696e652d73656c656374)](https://github.com/marshmallow-packages/nova-inline-select/blob/main/LICENSE.md)

This package gives you the possibility to create an inline select field in Laravel Nova. This is built to make quick changes to your resource from the index or detail view. On forms it will just show you a normal select.

[![alt text](resources/screenshots/preview.png "Package preview.")](resources/screenshots/preview.png)

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

[](#requirements)

- `php: ^8.1`
- `laravel/nova: ^5.0`

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

[](#installation)

Install the package in a Laravel Nova project via Composer:

```
composer require marshmallow/nova-inline-select
```

Usage
-----

[](#usage)

```
use Marshmallow\NovaInlineSelect\NovaInlineSelect;

return NovaInlineSelect::make(__('Assignee'), 'assignee_id')->options([
    1 => 'Stef van Esch',
    2 => 'Lars Kort',
]);
```

Avatar / Icons
--------------

[](#avatar--icons)

```
use Marshmallow\NovaInlineSelect\NovaInlineSelect;

return NovaInlineSelect::make(__('Assignee'), 'assignee_id')
    ->options([
        1 => 'Stef van Esch',
        2 => 'Lars Kort',
    ])
    ->avatarImages([
        1 => 'https://marshmallow.dev/stef.png',
        2 => 'https://marshmallow.dev/lars.png',
    ]);
```

### With avatar HTML

[](#with-avatar-html)

In the case you wish to use some kind of HTML as the `avatar`, for instance an SVG icon, you can use the `avatarHtml()` method.

```
use Marshmallow\NovaInlineSelect\NovaInlineSelect;

return NovaInlineSelect::make(__('Priority'), 'priority')
    ->options([
        'urgent' => 'Urgent',
        // ...
    ])
    ->avatarHtml([
        'urgent' => '...',
        // ...
    ]);
```

### No avatar image

[](#no-avatar-image)

You can customize what kind of image we render if no avatar images is provided for an option. You can use the `noAvatarImage()` method for this.

```
use Marshmallow\NovaInlineSelect\NovaInlineSelect;

return NovaInlineSelect::make(__('Priority'), 'priority')
    ->options([
        'urgent' => 'Urgent',
        // ...
    ])
    ->avatarHtml([
        'urgent' => '...',
        // ...
    ])
    ->noAvatarImage('...');
```

Arrows
------

[](#arrows)

By default, arrows are shown in the select box to indicate a selection can be made. You can change the behaviour with the following methods.

```
return NovaInlineSelect::make(__('Priority'), 'priority')
    ->showArrows()
    ->hideArrows()
    ->showArrowsOnIndex()
    ->hideArrowsOnIndex()
    ->showArrowsOnDetail()
    ->hideArrowsOnDetail();
```

Labels
------

[](#labels)

By default, the labels are shown in the select button. Sometimes you would want to hide this. In our preview image on top of this page, we have hidden the labels for the priority field, but kept it for the assignee field. You can do this with the following methods.

```
return NovaInlineSelect::make(__('Priority'), 'priority')
    ->showLabel()
    ->hideLabel()
    ->showLabelOnIndex()
    ->hideLabelOnIndex()
    ->showLabelOnDetail()
    ->hideLabelOnDetail();
```

Styling
-------

[](#styling)

It is possible to set the max width of the select button on the index and detail view. In our preview image on the top of this page, we have made the priority field a lot smaller so it doesnt take up a lot af room on the index view.

```
return NovaInlineSelect::make(__('Priority'), 'priority')
    ->maxWidthOnIndex('180px')
    ->maxWidthOnDetail('inherit');
```

No option selected
------------------

[](#no-option-selected)

By default, when no option is selected, the button will show the text `No option selected`. You can change this text with the method below.

```
return NovaInlineSelect::make(__('Priority'), 'priority')
    ->noOptionSelected('No prio set');
```

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'),
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Stef van Esch](https://github.com/stefvanesch)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance72

Regular maintenance activity

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Every ~120 days

Recently: every ~180 days

Total

7

Last Release

484d ago

Major Versions

v0.4.0 → v5.0.02025-03-07

### Community

Maintainers

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

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (33 commits)")

---

Tags

laravelnova

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/marshmallow-nova-inline-select/health.svg)](https://phpackages.com/packages/marshmallow-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)
