refactor: Remove TagItem model and replace with standard Laravel pivot table (#198)

Commit: 4d4a50814dfd34923d4b514461383a8c38b4c668
Date: 2025-07-07 15:48:56 +0200
Author: PascalHavelange

Commit Message

refactor: Remove TagItem model and replace with standard Laravel pivot table (#198)

refactor: replace TagItem model with standard Laravel pivot table

- Drop tag_items table and create item_tag pivot table with composite primary key
- Remove TagItem model, factory, seeder, controller, resource, and all related tests
- Update Item and Tag models to use standard belongsToMany relationships with withTimestamps()
- Replace TagItemSeeder with ItemTagSeeder using Eloquent attach() methods
- Update all unit and feature tests to use attach() instead of TagItem::factory()
- Remove TagItem API routes and controller
- Update CHANGELOG.md to document the refactoring

This simplifies the tagging system by using Laravel's standard many-to-many
relationship pattern instead of an over-engineered pivot model approach.

Co-authored-by: Pascal HAVELANGE <havelangep@hotmail.com>

Files Changed


This documentation was automatically generated from Git commit data.