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.
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.