PHPackages                             mmerlijn/nova-checkboxes-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. mmerlijn/nova-checkboxes-field

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

mmerlijn/nova-checkboxes-field
==============================

A Laravel Nova field.

v5.2.1(3mo ago)03.8k↑160.7%MITPHPPHP ^8.1

Since Jan 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/mmerlijn/nova-checkboxes-field)[ Packagist](https://packagist.org/packages/mmerlijn/nova-checkboxes-field)[ RSS](/packages/mmerlijn-nova-checkboxes-field/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (5)Used By (0)

Laravel Nova Checkboxes Field
-----------------------------

[](#laravel-nova-checkboxes-field)

### install

[](#install)

```
composer require mmerlijn/nova-checkboxes-field

```

### Usage

[](#usage)

```
use \mmerlijn\NovaCheckboxesField\Checkboxes;

Checkboxes::make('Roles')->options([
    1 => 'Admin',
    2=> 'Super user',
]);
```

### config

[](#config)

You can customise how the values from checkbox fields are passed to your scripts. By default it's will cast all numeric keys to floats or integers, e.g. \[1, 2, 3\] instead of \["1", "2", "3"\]. You can save disable this feature by calling withoutTypeCasting() to have the original array keys returned unmodified.

```
Checkboxes::make('Permissions')->options([
    1 => 'Access Admin UI',
    2 => 'Manage Users',
])->withoutTypeCasting(),
```

### Example

[](#example)

```
Checkboxes::make('users')
    ->options(App\User::pluck('name', 'id'))
    ->withoutTypeCasting(),
```

### Give permissions to user

[](#give-permissions-to-user)

Add to fields

```
Checkboxes::make('Permissions','permissionArray')
    ->options(Permission::pluck('name', 'id')->toArray())
    ->hideFromIndex(),
```

Add to User model

```
public function setPermissionArrayAttribute(array $value)
{
    $this->permissions()->sync($value);
}
public function getPermissionArrayAttribute()
{
    return $this->permissions->map(fn($item) => $item->pivot->permission_id)->toArray();
}
```

### Only for developing

[](#only-for-developing)

Make changes after nova update

```
cd vendor/laravel/nova && npm install
```

### Credits to

[](#credits-to)

[Silvanite](https://github.com/Silvanite/novafieldcheckboxes)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community7

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

Total

4

Last Release

95d ago

Major Versions

v4.2 → v5.02024-12-18

PHP version history (2 changes)v4.2PHP ^7.3|^8.0

v5.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/84de98c9a1803dbd730aabade43023ab14d7df77a5e71c012ecdd1150b300213?d=identicon)[mmerlijn](/maintainers/mmerlijn)

---

Top Contributors

[![mmerlijn](https://avatars.githubusercontent.com/u/8401393?v=4)](https://github.com/mmerlijn "mmerlijn (7 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/mmerlijn-nova-checkboxes-field/health.svg)

```
[![Health](https://phpackages.com/badges/mmerlijn-nova-checkboxes-field/health.svg)](https://phpackages.com/packages/mmerlijn-nova-checkboxes-field)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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