PHPackages                             scouser03/multi-column - 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. scouser03/multi-column

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

scouser03/multi-column
======================

A Laravel Nova field.

1.0.2(3y ago)09MITVuePHP &gt;=7.1.0

Since Jun 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/scouser03/nova-multi-column)[ Packagist](https://packagist.org/packages/scouser03/multi-column)[ RSS](/packages/scouser03-multi-column/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

A multicolumn field for Nova apps
=================================

[](#a-multicolumn-field-for-nova-apps)

Attention: Please, this package is clone  because This package is possibly abandoned.

This package contains a Laravel Nova field that enables the creation of repeatable sets of 'sub' fields. Nova users are free to create, reorder and delete multiple rows of data with the sub fields you define. Data is saved to the database as JSON.

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

[](#installation)

You can install this package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require scouser03/multi-column
```

Usage
-----

[](#usage)

```
namespace App\Nova;

use Scouser03\MultiColumn\MultiColumn;

// ...

class Post extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            MultiColumn::make('attributes'),

            // ...
        ];
    }
}
```

In order to use this package you should also ensure the Eloquent model that your Nova resource represents, is casting the attribute you wish to use a MultiColumn field for, to an array:

```
namespace App;

// ...

class Post extends Model
{
    protected $casts = [
        'attributes' => 'array'
    ]
}
```

The underlying database field should be either a `string` or `text` type field.

Configuration
-------------

[](#configuration)

This package comes with various options that you can use to define the sub fields within your MultiColumn and

#### addField

[](#addfield)

Parameters: `array`

Every MultiColumn field you create should contain at least one sub field added via `addField`. The `addField` method accepts an array of sub field configuration options:

```
MultiColumn::make('attributes')
    ->addField([
        // configuation options
    ])
```

Configuration options are:

##### label

[](#label)

```
[
    'label' => 'field label',
    //...
]
```

All sub fields must, at a minimum, be defined with a 'label'. This is a human-readable string that will appear in the Nova UI.

##### name

[](#name)

```
[
    'name' => 'field_name',
    //...
]
```

By default, the `name` of the sub field (used when saving the data in the database) will be generated automatically using a snake case version of the sub field `label`. Alternatively you are free to override this convention and define a custom name to be used.

##### type

[](#type)

```
[
    'type' => 'text',
    //...
]
```

By default, the input type of the sub field will be a standard text field. You are free to define a different field type if you wish. Currently supported sub field types are: 'text', 'number', 'select', 'textarea'.

##### placeholder

[](#placeholder)

```
[
    'placeholder' => 'Placheholder',
    //...
]
```

By default, the input `placeholder` will be the same as the sub field `label`. However you are free to define a custom placeholder using this option that will appear instead.

#### width

[](#width)

```
[
    'width' => 'w-1/2',
    //...
]
```

If you choose to display your sub fields in a row (rather than stacked - see the `displayStackedForm` option below) you can define the widths of your fields using [Tailwind's fractional width classes](https://tailwindcss.com/docs/width/#app). You do not need to define widths for all your fields unless you want to. If no widths are entered for any sub fields all sub fields will be the same width.

Note that you are free to mix and match widths. For example you may with to set your first two fields to 50% width using `w-1/2` then set the final field to be full width via `w-full`.

If you are displaying your sub fields in a stacked layout then width options will have no effect.

##### options

[](#options)

```
[
    'options' => [
        'first' => 'First',
        'second' => 'Second',
    ],
    //...
]
```

If the `type` of the sub field you are defining is 'select', you will need to define an array of options for the select field. These are defined using an array of key/value pairs.

##### attributes

[](#attributes)

```
[
    'attributes' => [
        'min' => 1,
        'max' => '20',
        'style' => 'color: red'
    ],
    //...
]
```

Via the `attributes` key you are free to define any custom properties you wish to add to the input via an associative array. These will be added via `v-bind`. For example you may wish to add min or max steps to a number field or a style attribute to a text field.

#### addButtonText

[](#addbuttontext)

```
MultiColumn::make('attributes')
    ->addButtonText('Add new dog');
```

You are free to configure the text for the button used to add a new set of sub fields in the Nova UI. By default this button is labelled 'Add row' but you can override this using the `addButtonText` option.

#### summaryLabel

[](#summarylabel)

```
MultiColumn::make('attributes')
    ->summaryLabel('Dogs');
```

#### displayStackedForm

[](#displaystackedform)

```
MultiColumn::make('attributes')
    ->displayStackedForm();
```

#### initialRows

[](#initialrows)

```
MultiColumn::make('attributes')
    ->initialRows(4);
```

Sets the initial number of rows that will be pre-added on form initialization. For forms with existing rows, it will append up to the set number of rows.

#### maximumRows

[](#maximumrows)

```
MultiColumn::make('attributes')
    ->maximumRows(4);
```

Sets the maximum number of rows as the upper limit. Upon reaching this limit, you will not be able to add new rows.

#### heading

[](#heading)

```
MultiColumn::make('attributes')
    ->heading('attributes');
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

1427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9753ef055b659acda531aef0fd84bf41973ad96b18d12bbf39d57458a53d6bd0?d=identicon)[scouser03](/maintainers/scouser03)

---

Top Contributors

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

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/scouser03-multi-column/health.svg)

```
[![Health](https://phpackages.com/badges/scouser03-multi-column/health.svg)](https://phpackages.com/packages/scouser03-multi-column)
```

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