https://packagist.org/packages/rtconner/laravel-tagging
# ● モデルに以下を追加
例: /app/Post.php にトレイトを追加
use \Conner\Tagging\Taggable; // tag
eager loadingされます
$post = \App\Post::with('tagged')->first();
$post->tag('Gardening'); // attach the tag
$post->tag('Gardening, Floral'); // attach the tag
$post->tag(['Gardening', 'Floral']); // attach the tag
$post->untag('Cooking'); // remove Cooking tag
$post->untag(); // remove all tags
$post->retag(['Fruit', 'Fish']); // delete current tags and save new tags
$post->retag('Fruit', 'Fish');
$post->retag('Fruit, Fish');