All Projects → optimistdigital → nova-table-field

optimistdigital / nova-table-field

Licence: MIT license
Table field for Laravel Nova

Programming Languages

Vue
7211 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nova-table-field

nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+231.03%)
Mutual labels:  laravel-nova, laravel-nova-field
nova-grouped-field
Combine multiple Nova fields as one field output
Stars: ✭ 43 (+48.28%)
Mutual labels:  laravel-nova, laravel-nova-field
nova-hidden-field
A Laravel Nova Hidden field.
Stars: ✭ 32 (+10.34%)
Mutual labels:  laravel-nova, laravel-nova-field
nova-html
This field allows you display custom HTML in Laravel Nova, be it a link, an image or any other piece of proper html.
Stars: ✭ 13 (-55.17%)
Mutual labels:  laravel-nova
select-auto-complete
An auto-completing Laravel Nova search field
Stars: ✭ 34 (+17.24%)
Mutual labels:  laravel-nova
Lang
List of 78 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.
Stars: ✭ 6,285 (+21572.41%)
Mutual labels:  laravel-nova
nova-filepond
A Nova field for uploading File, Image and Video using Filepond.
Stars: ✭ 36 (+24.14%)
Mutual labels:  laravel-nova-field
nova-sluggable
Slug field for Laravel Nova
Stars: ✭ 40 (+37.93%)
Mutual labels:  laravel-nova
nova-list-card
Add a variety of resource lists to Nova dashboards
Stars: ✭ 39 (+34.48%)
Mutual labels:  laravel-nova
nova-settings
A tool for editing settings on your project using akaunting/setting package on Laravel Nova
Stars: ✭ 18 (-37.93%)
Mutual labels:  laravel-nova
laravel-nova-visual-composer
Visual Composer for Laravel Nova
Stars: ✭ 15 (-48.28%)
Mutual labels:  laravel-nova
nova-gridder
Customize Nova Resource Details using Tailwind Grid System and more
Stars: ✭ 18 (-37.93%)
Mutual labels:  laravel-nova
nova-translatable
Nova Field for spatie/laravel-translatable package.
Stars: ✭ 84 (+189.66%)
Mutual labels:  laravel-nova
nova-errors
Display all form errors in a modal at the top of the page.
Stars: ✭ 16 (-44.83%)
Mutual labels:  laravel-nova
nova-horizon-stats
Nova cards for Laravel applications that use Laravel Horizon
Stars: ✭ 31 (+6.9%)
Mutual labels:  laravel-nova
nova-conditional-fields
WIP: Conditionally display fields based on another field's value
Stars: ✭ 38 (+31.03%)
Mutual labels:  laravel-nova
laravel-nova-order-nestedset-field
Laravel Nova field that make your resources orderable
Stars: ✭ 21 (-27.59%)
Mutual labels:  laravel-nova
nova-opcache
OPcache Tool for Laravel Nova
Stars: ✭ 21 (-27.59%)
Mutual labels:  laravel-nova
nova-assertions
Laravel Nova assertions for your tests
Stars: ✭ 76 (+162.07%)
Mutual labels:  laravel-nova
nova-rating-field
A Star rating field to use in your Laravel Nova apps.
Stars: ✭ 42 (+44.83%)
Mutual labels:  laravel-nova

Nova Table Field

Latest Version on Packagist Total 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.

use OptimistDigital\NovaTableField\Table;

public function fields(Request $request)
{
    return [
        Table::make('Countries')

        // 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'];

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].