PHPackages                             wamesk/laravel-nova-inline-badge-field - 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. wamesk/laravel-nova-inline-badge-field

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

wamesk/laravel-nova-inline-badge-field
======================================

5.0.0(1y ago)1504[1 issues](https://github.com/wamesk/laravel-nova-inline-badge-field/issues)proprietaryPHP

Since May 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/wamesk/laravel-nova-inline-badge-field)[ Packagist](https://packagist.org/packages/wamesk/laravel-nova-inline-badge-field)[ RSS](/packages/wamesk-laravel-nova-inline-badge-field/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Nova Inline Badge Field
===============================

[](#laravel-nova-inline-badge-field)

This package adds inline editing for the badge field in index, detail and form.

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

[](#requirements)

- `laravel/nova: ^5.0`

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

[](#installation)

```
composer require wamesk/laravel-nova-inline-badge-field
```

Usage
-----

[](#usage)

The usage is exactly the same as the default Badge field in Laravel Nova 4

```
use Wame\LaravelNovaInlineBadgeField\Fields\InlineBadge;

InlineBadge::make('Status')->map([
        'draft' => 'danger',
        'published' => 'success',
    ])->labels([
        'draft' => 'Draft',
        'published' => 'Published',
    ]),
```

Added additional method for setting `styles()`, e.g. to set a specific background color from database

```
    ->styles([
        'draft' => 'background-color: #ff0000;',
        'published' => 'background-color: #008000;',
    ])
```

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.

```
BelongsTo::make(__('order.field.company'), 'company', Company::class)
    ->required()
    ->rules('required')
    ->updateRules('sometimes')
```

Authorization
-------------

[](#authorization)

If the user does not have the permission to edit the resource, nothing will happen after clicking.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~172 days

Total

3

Last Release

392d ago

Major Versions

1.0 → 4.x-dev2024-05-06

4.x-dev → 5.0.02025-04-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bf6ece61ae07942df38ce88eb4053d4176c6ab0bf803191953961023f25fc70?d=identicon)[WAME](/maintainers/WAME)

---

Top Contributors

[![adrianzofcin](https://avatars.githubusercontent.com/u/75702986?v=4)](https://github.com/adrianzofcin "adrianzofcin (2 commits)")[![stanislav-cervenak](https://avatars.githubusercontent.com/u/6931349?v=4)](https://github.com/stanislav-cervenak "stanislav-cervenak (1 commits)")

### Embed Badge

![Health badge](/badges/wamesk-laravel-nova-inline-badge-field/health.svg)

```
[![Health](https://phpackages.com/badges/wamesk-laravel-nova-inline-badge-field/health.svg)](https://phpackages.com/packages/wamesk-laravel-nova-inline-badge-field)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

6123.3M21](/packages/ebess-advanced-nova-media-library)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[eminiarts/nova-tabs

Laravel Nova - Tabs.

4624.1M20](/packages/eminiarts-nova-tabs)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[spatie/nova-tags-field

A tags field for Nova apps

3021.9M7](/packages/spatie-nova-tags-field)

PHPackages © 2026

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