italofantone/taxonable

A Laravel package to manage flexible content taxonomy with taggable support for Eloquent models.

v1.0.1 2025-05-22 22:29 UTC

This package is auto-updated.

Last update: 2025-05-22 22:32:02 UTC


README

A Laravel package to manage flexible content taxonomy with taggable support for Eloquent models.

⚠️ This code was used for educational purposes [...]

Installation

composer require italofantone/taxonable

Usage

  1. Add the trait to your model:
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Italofantone\Taxonable\Traits\HasTags;

class Lesson extends Model
{
    use HasTags;
}
  1. Methods:
// model = lesson

$model->addTag($tag);
$model->removeTag($tag);
$model->syncTags($tag); // recommended

Contact

Donations

If you find this project useful and would like to support its development, you can make a donation via PayPal:

Thank you for your support!