alfasix / alfakit-tags
Spatie Laravel Tags input, column and entry for AlfaKit panels.
v0.1.5
2026-10-19 05:29 UTC
Requires
- php: ^8.3
- alfasix/alfakit: ^0.1|@dev
- spatie/laravel-tags: ^4.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
by Alfa Six
This is a read-only split of the AlfaKit monorepo. Please open issues and pull requests there.
Spatie Laravel Tags input, column and entry for AlfaKit panels. They render in React, Vue and Svelte with AlfaKit's built-in components.
Installation
composer require alfasix/alfakit-tags
Install and migrate spatie/laravel-tags, then add HasTags to your model.
Registering the plugin is optional:
use AlfaSix\AlfakitTags\TagsPlugin; $panel->plugin(TagsPlugin::make());
Usage
use AlfaSix\AlfakitTags\Forms\Components\SpatieTagsInput; use AlfaSix\AlfakitTags\Infolists\Components\SpatieTagsEntry; use AlfaSix\AlfakitTags\Tables\Columns\SpatieTagsColumn; // Form: filled from the record's tags of the type, suggests existing tags, saved with syncTagsWithType(). SpatieTagsInput::make('categories')->type('categories'); // Table and infolist: the tag names as badges. SpatieTagsColumn::make('tags')->type('categories'); SpatieTagsEntry::make('tags')->type('categories');
Without type() tags of every type are used (and the input saves with syncTags()); type(null) means tags without a type.
Full documentation: alfakit.dev/docs/plugins/tags.
License
MIT. See LICENSE.md.