Closed eggnaube closed 1 year ago
Thanks!
I can submit a separate PR for this, but shouldn't we ensure some sort of backward compat with old config files to prevent issues like this https://github.com/spatie/laravel-tags/issues/472?
Something like this:
public function getPivotModelClassName(): string
{
return config('tags.taggable.class_name', Illuminate\Database\Eloquent\Relations\MorphPivot::class);
}
This change allows the use of an own taggables class. Thus, for example, events can be easily registered on the taggables.