Registry / utility / spatie-laravel-tags

spatie-laravel-tags

JSON →
library4.11.0phppackagistunverified

Add tags and taggable behaviour to your Laravel app

composer require spatie/laravel-tags
INSTALL
IMPORT
SIG · SPATIE-LARAVEL-TAG
S
spatie-laravel-tags
utilityphpv4.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HasTags
use Spatie\Tags\HasTags;

Add taggable behavior to an Eloquent model.

use Spatie\Tags\HasTags; class Post extends Model { use HasTags; } $post = Post::find(1); $post->attachTag('news');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.11.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
spatie-laravel-tags — pip install spatie-laravel-tags · libregistry