Download the PHP package polashmahmud/taggy without Composer
On this page you can find all versions of the php package polashmahmud/taggy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polashmahmud/taggy
More information about polashmahmud/taggy
Files in polashmahmud/taggy
Package taggy
Short Description An Eloquent tagging package for laravel
License MIT
Informations about the package taggy
Taggy - Laravel Tagging Package
Taggy is a Laravel package that provides tagging functionality for your Eloquent models. Easily add and manage tags for your models with this simple and flexible package.
Features
- Tagging: Associate tags with your Eloquent models.
- Taggable Trait: Easily make your models taggable using the Taggable trait.
Installation
To install Taggy, simply run:
Then, migrate your database:
Usage
Tagging Models
To make a model taggable, use the Polashmahmud\Taggy\Taggable
trait on the model:
Creating Tags
To create a tag, use the create()
method on the Polashmahmud\Taggy\Models\Tag
model:
Tagging Items
To tag an item, use the tag()
method on the model, passing in the tag name or slug as a array:
also you can pass tag:
Untagging Items
To remove a tag from an item, use the untag()
method on the model:
Remove all tags from an item:
Retagging Items
To remove all tags from an item and add new tags, use the retag()
method on the model:
Tagging Scopes
Taggy provides a few useful query scopes for working with tags:
Contributing
Thank you for considering contributing to Taggy! Please see CONTRIBUTING for details.
License
Taggy is open-sourced software licensed under the MIT license.
All versions of taggy with dependencies
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0