marshmallow/nova-tags-field

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

A tags field for Nova apps

v1.1.1 2021-04-07 10:44 UTC

README

alt text

A tags field for Nova apps

Version Issues Licence PHP Syntax Checker

A Laravel Nova field for storing tags on a model in one column. This will be stored as a JSON string.

Installation

You can install the package via composer:

composer require marshmallow/nova-tags-field

Usage

Prepare your resources and models to make use of the taggable fields.

Nova Resource

Add the tags field to your Nova resource.

use Marshmallow\TagsField\Tags;

public function fields(Request $request)
{
    Tags::make('Tags'),
}

Model

Cast the columns where you want to store your tags as an array. Otherwise creating resources will fail.

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

Options

use Marshmallow\TagsField\Tags;

public function fields(Request $request)
{
    Tags::make('Tags')->addMoreText('Add another...'),
}

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email stef@marshmallow.dev instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.