masoudi/nova-textlist-field

text list field for the Laravel Nova

Downloads

892

Stars

4

Version

0.2

This package has been archived

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"),
        ];
    }
rezamasoudi

Author

rezamasoudi