Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Repository files navigation

Nova Table Field

Latest Version on PackagistTotal Downloads

Simple Laravel Nova Table field.

Form View

Form View GIF

Installation

Install the package in a Laravel Nova project via Composer:

composer require optimistdigital/nova-table-field

Usage

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

useOptimistDigital\NovaTableField\Table;
publicfunctionfields(Request$request)
{
return [
Table::make('Countries')
// Optional:
->disableAddingRows() // Disable adding new rows
->disableDeletingRows() // Disable deleting rows
->disableAddingColumns() // Disable adding columns
->disableDeletingColumns() // Disable deleting 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
->headings(['Languages', 'Countries'], true) // Shows table head and allows for saving as objects.
];
}

Localization

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.

About

Table field for Laravel Nova

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages