masoudi / nova-textlist-field
text list field for the Laravel Nova
Installs: 2 475
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
README
Laravel Nova Text List Field
Create JSON text list as simple
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"), ]; }