PHPackages                             lifeonscreen/nova-belongs-to-badge - 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. lifeonscreen/nova-belongs-to-badge

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

lifeonscreen/nova-belongs-to-badge
==================================

A Laravel Nova belongs to badge field.

v1.0.0(7y ago)24.7k1[2 issues](https://github.com/LifeOnScreen/nova-belongs-to-badge/issues)MITPHPPHP &gt;=7.1.0

Since Sep 28Pushed 7y ago3 watchersCompare

[ Source](https://github.com/LifeOnScreen/nova-belongs-to-badge)[ Packagist](https://packagist.org/packages/lifeonscreen/nova-belongs-to-badge)[ Docs](https://github.com/LifeOnScreen/nova-belongs-to-badge)[ RSS](/packages/lifeonscreen-nova-belongs-to-badge/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Simple Laravel Nova BelongTo Badge field. It extends the BelongsTo fields and displays badge on Index and Details page.

Details page
------------

[](#details-page)

Example of badge in detail page:

[![Badge on detail page](docs/images/detail.png)](docs/images/detail.png)

Index page
----------

[](#index-page)

Example of badge in index page:

[![Badge on index page](docs/images/index.png)](docs/images/index.png)

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

[](#installation)

Via Composer

```
$ composer require lifeonscreen/nova-belongs-to-badge
```

To create migrations witch adds colors to your tables you can run:

```
$ php artisan make:migration:add-badge-colors {tableName}
```

Usage
-----

[](#usage)

Add this to Field list:

```
BelongsToBadge::make('Status', 'status', Status::class),
```

Field will read colors from `badgeBackgroundColor` and `badgeForegroundColor` attribute.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Jani Cerar](https://github.com/janicerar)

License
-------

[](#license)

MIT license. Please see the [license file](docs/license.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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 ~233 days

Total

2

Last Release

2639d ago

Major Versions

v0.0.1 → v1.0.02019-05-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38758825?v=4)[LifeOnScreen](/maintainers/LifeOnScreen)[@LifeOnScreen](https://github.com/LifeOnScreen)

---

Top Contributors

[![janicerar](https://avatars.githubusercontent.com/u/29040621?v=4)](https://github.com/janicerar "janicerar (5 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/lifeonscreen-nova-belongs-to-badge/health.svg)

```
[![Health](https://phpackages.com/badges/lifeonscreen-nova-belongs-to-badge/health.svg)](https://phpackages.com/packages/lifeonscreen-nova-belongs-to-badge)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

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

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

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

Boost your Laravel Nova with the TinyMCE editor.

17194.8k1](/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.

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

A Laravel Nova custom field text with masks on input

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

PHPackages © 2026

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