rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Configurable Tagged model #102

Closed czim closed 8 years ago

czim commented 8 years ago

To make the tagged() morphMany relation configurable. This way you can roll your own Tagged model, with cache traits for instance.

My use case is a setup where I want all my queries to be cacheable, including all eager loaded relations. The tagged() relation for me now points to a model that has the Rememberable trait, so I can do just that.

Since the tagging.php config already has a configurable Tag model, this addition makes perfect sense to me.

rtconner commented 8 years ago

Merge manually.