This package offers taggable behaviour for your models. After the package is installed the only thing you have to do is add the Taggable trait to an Eloquent model to make it taggable.
You can install the package via composer:
composer require arnehendriksen/laravel-tags
The package will automatically register itself.
Migrations will be loaded from the package service provider. The only thing you'll have to do is run them with:
php artisan migrate
// Attaching tags $post->attachTag('marketing'); $post->attachTags(['seo','ranking']); // Detaching tags $post->detachTag('marketing'); $post->detachTags(['seo','ranking']);