Cviebrock\EloquentTaggable\Taggable::tags PHP Method

tags() public method

Get a collection of all Tags a Model has.
public tags ( ) : Illuminate\Database\Eloquent\Relations\MorphToMany
return Illuminate\Database\Eloquent\Relations\MorphToMany
    public function tags()
    {
        return $this->morphToMany(Tag::class, 'taggable', 'taggable_taggables')->withTimestamps();
    }