PHP code example of masoudi / nova-textlist-field

1. Go to this page and download the library: Download masoudi/nova-textlist-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

masoudi / nova-textlist-field example snippets


class Post extends Model {

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

}

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

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