PHPackages                             aammui/laravel-taggable - 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. aammui/laravel-taggable

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

aammui/laravel-taggable
=======================

Assign Category and Tags to a model

3.0.0(3y ago)3323MITPHPPHP ^7.1|^8.0

Since Mar 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bedus-creation/LaravelTaggable)[ Packagist](https://packagist.org/packages/aammui/laravel-taggable)[ RSS](/packages/aammui-laravel-taggable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (11)Used By (0)

### Introduction

[](#introduction)

Category and Tags are often useful while working working with Laravel Model. This solution enable categories and tags for any Models in Laravel. Here step by step setup is given below.

### Content

[](#content)

1. [Installtion](https://github.com/bedus-creation/LaravelTaggable#step1-installation)
2. [Publish Assets and Migration](https://github.com/bedus-creation/LaravelTaggable#step2-publish-migrations-assets)
3. [Use Trait in model](https://github.com/bedus-creation/LaravelTaggable#step3-use-traits)
4. [Call from anywhere](https://github.com/bedus-creation/LaravelTaggable#step4-call-from-anywhere)
5. [Display in blade](https://github.com/bedus-creation/LaravelTaggable#step5-display-in-blade)

### Step1: Installation

[](#step1-installation)

```
composer require aammui/laravel-taggable
```

### Step2: Publish Migrations assets

[](#step2-publish-migrations-assets)

```
php artisan vendor:publish --provider="Aammui\LaravelTaggable\LaravelTaggableServiceProvider"
php artisan migrate

```

### Step3: Use Traits

[](#step3-use-traits)

Add `HasCatgory` and `HasTag` Traits in your model.

```
