Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/laravel-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Oct 23, 2016
2 parents 384e01b + 9401778 commit 5db11f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ $newsItem->detachTags(['tag4', 'tag5']);
//syncing tags
$newsItem->syncTags(['tag1', 'tag2');

//retrieve models that of any of the given tags
NewsItem::withAnyTags(['tag1, 'tag2']);
//retrieve models that have any of the given tags
NewsItem::withAnyTags(['tag1', 'tag2']);

//retrieve models that have all of the given tags
NewsItem::withAllTags(['tag1, 'tag2']);
NewsItem::withAllTags(['tag1', 'tag2']);
```

This is the core functionality of almost every other tag package out there. What makes this spatie/laravel-tags unique is the built in support for translation, tag types, slugs, and sortable tags.
Expand Down

0 comments on commit 5db11f4

Please sign in to comment.