PHPackages                             blendbyte/nova-items-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. blendbyte/nova-items-field

ActiveLibrary

blendbyte/nova-items-field
==========================

Nova field to handle array columns

2.0.1(1y ago)14511.4k—2.7%11[2 issues](https://github.com/blendbyte/nova-items-field/issues)MITVuePHP ^8.1

Since Jan 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/blendbyte/nova-items-field)[ Packagist](https://packagist.org/packages/blendbyte/nova-items-field)[ RSS](/packages/blendbyte-nova-items-field/feed)WikiDiscussions nova5 Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (0)

Nova Items Field
----------------

[](#nova-items-field)

Laravel Nova array items field with sorting, validation &amp; many [display options](#additional-options)

[![nova-array-input-field](https://user-images.githubusercontent.com/29180903/51337942-7d1be300-1a56-11e9-84fa-66f5b285c279.png)](https://user-images.githubusercontent.com/29180903/51337942-7d1be300-1a56-11e9-84fa-66f5b285c279.png)

### Installation

[](#installation)

```
composer require blendbyte/nova-items-field

```

### Usage

[](#usage)

```
use NovaItemsField\Items;
```

```
function fields() {
    return [
        Items::make('Emails')
    ]
}
```

and be sure to [cast](https://laravel.com/docs/5.7/eloquent-mutators#array-and-json-casting) the property as an array on your eloquent model

```
public $casts = [
    'emails' => 'array'
];
```

### Validation

[](#validation)

Use Laravel's built in [array validation](https://laravel.com/docs/5.7/validation#validating-arrays)

```
Items::make('Emails')->rules([
     null => 'required|min:2'
     '*' => 'email|min:10',
]),
```

In this case, an error is produced if there aren't at least 2 items in the array and if each item is not a valid email or is shorter than 10 characters.

You might prefer to use explicit attribute names, the behaviour is exactly the same as before

```
Items::make('Emails', 'user_email')->rules([
    'user_email' => 'required|min:2',
    'user_email.*' => 'email|min:10',
]),
```

### Array processing

[](#array-processing)

Use the array to perform other actions by making an [observer](https://nova.laravel.com/docs/1.0/resources/#resource-events)

```
function saving($user)
{
    foreach($user->emails as $email)
    {
        //
    }
}
```

### Replace item vue component

[](#replace-item-vue-component)

Here's a brief walkthrough to customize the vue item - [view](https://github.com/dillingham/nova-items-field/issues/10#issuecomment-527315057)

### Additional options

[](#additional-options)

functiondescriptiondefault`->max(number)`limit number of items allowedfalse`->draggable()`turn on drag/drop sortingfalse`->fullWidth()`increase the width of field areafalse`->maxHeight(pixel)`limit the height of the listfalse`->listFirst()`move add new to the bottomfalse`->inputType(text)`text, date, etc"text"`->placeholder($value)`the new item input text"Add a new item"`->deleteButtonValue($value)`value for delete button"x"`->createButtonValue($value)`value for create button"Add"`->hideCreateButton()`hide the "add" buttonfalse`->indexAsList()`display items as list on index instead of total numberfalse`->detailsAsTotal()`display total of items on detail view instead of listfalse

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance46

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% 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 ~105 days

Recently: every ~130 days

Total

23

Last Release

372d ago

Major Versions

0.8 → 1.0.02022-04-12

1.3.4 → 2.0.02024-12-16

PHP version history (3 changes)0.0.1PHP &gt;=7.1.0

0.7PHP ^7.3|^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/12043214c857ec65b93c40b5322af6ea2c08cecac519b71149e2e61db228651e?d=identicon)[bashgeek](/maintainers/bashgeek)

---

Top Contributors

[![bashgeek](https://avatars.githubusercontent.com/u/4669888?v=4)](https://github.com/bashgeek "bashgeek (33 commits)")[![dillingham](https://avatars.githubusercontent.com/u/29180903?v=4)](https://github.com/dillingham "dillingham (7 commits)")[![gerardnll](https://avatars.githubusercontent.com/u/2018022?v=4)](https://github.com/gerardnll "gerardnll (3 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (1 commits)")[![Anticom](https://avatars.githubusercontent.com/u/1880890?v=4)](https://github.com/Anticom "Anticom (1 commits)")[![scramatte](https://avatars.githubusercontent.com/u/188766?v=4)](https://github.com/scramatte "scramatte (1 commits)")[![marijoo](https://avatars.githubusercontent.com/u/360736?v=4)](https://github.com/marijoo "marijoo (1 commits)")[![pindab0ter](https://avatars.githubusercontent.com/u/5128166?v=4)](https://github.com/pindab0ter "pindab0ter (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/blendbyte-nova-items-field/health.svg)

```
[![Health](https://phpackages.com/badges/blendbyte-nova-items-field/health.svg)](https://phpackages.com/packages/blendbyte-nova-items-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)[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)[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[stepanenko3/nova-command-runner

Laravel Nova tool for running Artisan and bash(shell) commands.

36983.0k](/packages/stepanenko3-nova-command-runner)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)

PHPackages © 2026

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