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. [Utility &amp; Helpers](/categories/utility)
4. /
5. blendbyte/nova-items-field

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

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

Array items field for Laravel Nova with drag/drop sorting, validation &amp; flexible display options. Fork of dillingham/nova-items-field, maintained for Nova 5.

2.0.1(1y ago)14573.2k↓26.1%11[1 issues](https://github.com/blendbyte/nova-items-field/issues)MITVuePHP ^8.1

Since Jan 10Pushed 2mo 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 2d ago

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

Nova Items Field
================

[](#nova-items-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/57fc52a265d64403ce75d1ca2d488b5f68ed4d035b0d18480c40460436f47616/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c656e64627974652f6e6f76612d6974656d732d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/blendbyte/nova-items-field)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](license.md)

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

Forked from [dillingham/nova-items-field](https://github.com/dillingham/nova-items-field).

[![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
```

Quick Start
-----------

[](#quick-start)

```
use NovaItemsField\Items;

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

Be sure to [cast](https://laravel.com/docs/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/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 can also use explicit attribute names — the behaviour is exactly the same:

```
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://laravel.com/docs/eloquent#observers):

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

Customizing the Vue Component
-----------------------------

[](#customizing-the-vue-component)

You can replace the default item Vue component — see [this walkthrough](https://github.com/dillingham/nova-items-field/issues/10#issuecomment-527315057) for a brief guide.

Options
-------

[](#options)

MethodDescriptionDefault`->max(number)`Limit number of items allowed`false``->draggable()`Turn on drag/drop sorting`false``->fullWidth()`Increase the width of the field area`false``->maxHeight(pixel)`Limit the height of the list`false``->listFirst()`Move "add new" to the bottom`false``->inputType(text)`Input type: `text`, `date`, etc.`"text"``->placeholder($value)`Placeholder text for the new item input`"Add a new item"``->deleteButtonValue($value)`Label for the delete button`"x"``->createButtonValue($value)`Label for the create button`"Add"``->hideCreateButton()`Hide the "Add" button`false``->indexAsList()`Display items as a list on index instead of a count`false``->detailsAsTotal()`Display item count on detail view instead of a list`false`Maintained by Blendbyte
-----------------------

[](#maintained-by-blendbyte)

 [   ![Blendbyte](https://camo.githubusercontent.com/09962a5684a0b50fb9eb44edfd8f2560be418bc8ce3d23a31f96395f3f14d58e/68747470733a2f2f7777772e626c656e64627974652e636f6d2f6c6f676f5f686f72697a6f6e74616c2e706e67)  ](https://www.blendbyte.com)

 **[Blendbyte](https://www.blendbyte.com)** builds cloud infrastructure, web apps, and developer tools.
 We've been shipping software to production for 20+ years.

 This package runs in our own stack, which is why we keep it maintained.
 Issues and PRs get read. Good ones get merged.

 [blendbyte.com](https://www.blendbyte.com) ·

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance66

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 70.6% 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

417d 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://avatars.githubusercontent.com/u/69378377?v=4)[Blendbyte](/maintainers/blendbyte)[@blendbyte](https://github.com/blendbyte)

---

Top Contributors

[![bashgeek](https://avatars.githubusercontent.com/u/4669888?v=4)](https://github.com/bashgeek "bashgeek (36 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

[ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

6163.5M22](/packages/ebess-advanced-nova-media-library)[optimistdigital/nova-sortable

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

2852.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.

2862.1M9](/packages/outl1ne-nova-sortable)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92219.3k3](/packages/advoor-nova-editor-js)[outl1ne/nova-page-manager

Page(s) and region(s) manager for Laravel Nova.

17947.0k](/packages/outl1ne-nova-page-manager)

PHPackages © 2026

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