masoudi/nova-textlist-field

This package is abandoned and no longer maintained. No replacement package was suggested.

text list field for the Laravel Nova

0.2 2022-09-04 10:25 UTC

This package is auto-updated.

Last update: 2023-07-16 09:50:43 UTC


README

Latest Version on Packagist Total Downloads License: MIT

Laravel Nova Text List Field

Create JSON text list as simple

textlist

How to use

Install package via Composer

composer require masoudi/nova-textlist-field

Cast field to array

class Post extends Model {

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

}

Add the TextList field at nova resource

    public function fields(NovaRequest $request)
    {
        return [
            ...

            TextList::make('Labels')->placeholder("Press enter to add"),
        ];
    }