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

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

energon7/nova-items-field
=========================

Nova field to handle array columns

0.5.1(6y ago)0380MITVuePHP &gt;=7.1.0

Since Jul 26Pushed 6y agoCompare

[ Source](https://github.com/Energon7/nova-items-field)[ Packagist](https://packagist.org/packages/energon7/nova-items-field)[ RSS](/packages/energon7-nova-items-field/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#nova-items-field)

[![Latest Version on Github](https://camo.githubusercontent.com/3564fa431c6954c0a1b6adc4cb3ff1717fe810d61a71fb13ecfb6c9e6044ec7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64696c6c696e6768616d2f6e6f76612d6974656d732d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dillingham/nova-items-field)[![Total Downloads](https://camo.githubusercontent.com/c1db64a224d28374383e7f6a3592b05c3281f59d1b58fe6be65f9a92e042b51c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696c6c696e6768616d2f6e6f76612d6974656d732d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dillingham/nova-items-field)

Laravel Nova array items field with sorting, validation &amp; many [display options](https://github.com/dillingham/nova-items-field#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 dillingham/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([
    'emails.*' => 'email|min:10',
]),
```

Manually setting the attribute may be needed in some cases.

```
Items::make('Long Text', 'attribute')->rules([
    'attribute.*' => '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)
    {
        //
    }
}
```

### 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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2480d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9e50c333693422ef7266e9105b97376f1c34bcfd3a15bc3abf12c3516a38f09?d=identicon)[Energon7](/maintainers/Energon7)

---

Top Contributors

[![Energon7](https://avatars.githubusercontent.com/u/28485483?v=4)](https://github.com/Energon7 "Energon7 (2 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

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

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

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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