PHPackages                             uwla/ltags - 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. [Framework](/categories/framework)
4. /
5. uwla/ltags

ActiveLibrary[Framework](/categories/framework)

uwla/ltags
==========

Laravel Tagging System

v2.0.1(1y ago)520MITPHP

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/uwla/ltags)[ Packagist](https://packagist.org/packages/uwla/ltags)[ Docs](https://github.com/uwla/ltags)[ RSS](/packages/uwla-ltags/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

LTAGS
=====

[](#ltags)

Tagging system for Laravel.

FEATURES
--------

[](#features)

- **arbitrary models**: tags can be attached to any Eloquent Model.
- **nested tags**: a tag can also be tagged, allowing hierarchical structures.
- **context aware**: multiple tags with the same label can be created for different contexts.
- **non intrusive**: a resource can be tagged without any modification to its classes or DB tables.
- **handy API**: handy API to add/set/get/delete tags to a model, and to fetch models by their tags.

INSTALL
-------

[](#install)

Install using composer:

```
composer require uwla/ltags
```

Publish the ACL table migrations:

```
php artisan vendor:publish --provider="Uwla\Ltags\TagServiceProvider"
```

Run the migrations:

```
php artisan migrate
```

USAGE
-----

[](#usage)

This sections explains how to use the package. A demo app is also available on [uwla/ltags-demo](https://github.com/uwla/ltags-demo) to illustrate use case.

### Tags

[](#tags)

Create tag:

```
