Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 475 Bytes

suggesting.md

File metadata and controls

18 lines (13 loc) · 475 Bytes

Suggesting

Suggesting is a small little feature you could use if you wanted to have "suggested" tags that stand out.

There is not much to it. You simply set the 'suggest' field in the database to true

$tag = Conner\Tagging\Model\Tag::where('slug', '=', 'blog')->first();
$tag->suggest = true;
$tag->save();

And then you can fetch a list of suggested tags when you need it.

$suggestedTags = Conner\Tagging\Model\Tag::suggested()->get();