PHPackages                             amitkolloldey/laravel-taggify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. amitkolloldey/laravel-taggify

ActiveLibrary[Database &amp; ORM](/categories/database)

amitkolloldey/laravel-taggify
=============================

Yet another eloquent tagging package for Laravel 7

v1.0(5y ago)961[3 PRs](https://github.com/amitkolloldey/laravel-taggify/pulls)MITPHPPHP ^7.2.5

Since Jul 24Pushed 3y agoCompare

[ Source](https://github.com/amitkolloldey/laravel-taggify)[ Packagist](https://packagist.org/packages/amitkolloldey/laravel-taggify)[ RSS](/packages/amitkolloldey-laravel-taggify/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Laravel Taggify - Eloquent Tagging Package
==========================================

[](#laravel-taggify---eloquent-tagging-package)

[![Latest Stable Version](https://camo.githubusercontent.com/e23f4c69c6016d9469b72142b3fc8195bd91be3b0d7697ceca667a95c7f91162/68747470733a2f2f706f7365722e707567782e6f72672f616d69746b6f6c6c6f6c6465792f6c61726176656c2d746167676966792f76)](//packagist.org/packages/amitkolloldey/laravel-taggify) [![Total Downloads](https://camo.githubusercontent.com/e922fc164b771db33a667fe14fd1ad73f51bf66084d801f640e3aaa881379950/68747470733a2f2f706f7365722e707567782e6f72672f616d69746b6f6c6c6f6c6465792f6c61726176656c2d746167676966792f646f776e6c6f616473)](//packagist.org/packages/amitkolloldey/laravel-taggify) [![Latest Unstable Version](https://camo.githubusercontent.com/fc976798f3be82568ab2f9fa2c09eeb8ac63c77146ee644c4a2b4ced5de23471/68747470733a2f2f706f7365722e707567782e6f72672f616d69746b6f6c6c6f6c6465792f6c61726176656c2d746167676966792f762f756e737461626c65)](//packagist.org/packages/amitkolloldey/laravel-taggify) [![License](https://camo.githubusercontent.com/33786b04c43813aca993cb161b290eaad7d6a3cc18a7cb9668aceeaa3302dca0/68747470733a2f2f706f7365722e707567782e6f72672f616d69746b6f6c6c6f6c6465792f6c61726176656c2d746167676966792f6c6963656e7365)](//packagist.org/packages/amitkolloldey/laravel-taggify)

This package will allow user to add Tagging system in the Laravel 7 application.

You can provide combination of string or id or model to create tags. It will check if a tag is already exists in the tags table. If not it will create a new tag and attach with the model. It also comes with some useful helpers and Scopes.

#### Composer Install

[](#composer-install)

```
composer require amitkolloldey/laravel-taggify
```

#### Run the migrations

[](#run-the-migrations)

Migrate The database tables

```
php artisan migrate
```

It will migrate `tags` , `taggables` tables

#### Setup your models

[](#setup-your-models)

To creat a many to many polymorphic relation with your model and tags you need to use the `Taggify` trait.

```
