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)1513[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 1w 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

24

—

LowBetter than 30% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

490d 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

[outl1ne/nova-sortable

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

2852.2M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-sortable

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

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

Laravel Nova tools for managing the Spatie media library.

6143.6M22](/packages/ebess-advanced-nova-media-library)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17930.8k](/packages/markwalet-nova-modal-response)[spatie/nova-backup-tool

A Laravel Nova tool to backup your application.

361588.6k1](/packages/spatie-nova-backup-tool)[outl1ne/nova-simple-repeatable

A Laravel Nova simple repeatable rows field.

75416.9k](/packages/outl1ne-nova-simple-repeatable)

PHPackages © 2026

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