Table field for Laravel Nova

Installs: 93 131

Dependents: 0

Suggesters: 0

Security: 0

Stars: 37

Watchers: 5

Forks: 25

Open Issues: 5


1.0.3 2022-06-13 05:22 UTC

This package is auto-updated.

Last update: 2023-08-30 13:28:05 UTC


Latest Version on Packagist Total Downloads

Simple Laravel Nova Table field.

Form View

Form View GIF


Install the package in a Laravel Nova project via Composer:

composer require optimistdigital/nova-table-field


The Table field provides a convenient interface to edit rows and columns stored inside JSON equivalent column.

use OptimistDigital\NovaTableField\Table;

public function fields(Request $request)
    return [

        // Optional:
        ->disableAdding() // Disable adding new rows and columns
        ->disableDeleting() // Disable deleting rows and columns
        ->minRows(1) // The minimum number of rows in the table
        ->maxRows(10) // The maximum number of rows in the table
        ->minColumns(1) // The minimum number of columns in the table
        ->maxColumns(10) // The maximum number of columns in the table

Note that you also have to cast the JSON data to array in your model

protected $casts = ['countries' => 'array'];


The translations file can be published by using the following publish command:

php artisan vendor:publish --provider="OptimistDigital\NovaTableField\FieldServiceProvider" --tag="translations"

You can then edit the strings to your liking.