Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 383 Bytes

tag-groups.md

File metadata and controls

26 lines (18 loc) · 383 Bytes

Tag Groups

TagGroups are a simple feature that let you group a set of tags together

php artisan tagging:create-group MyTagGroup

Set the tag group for a tag

$tag->setGroup('MyTagGroup');

To get all the tags in a certain group

Tag::inGroup('MyTagGroup')->get()

Check if a tag is in a group

$tag->isInGroup('MyTagGroup');