cviebrock / eloquent-taggable

Easily add the ability to tag your Eloquent models in Laravel.
MIT License
559 stars 72 forks source link

Model::allTagModels() doesn't exist #56

Closed philippejadin closed 7 years ago

philippejadin commented 7 years ago

Taggable php is missing allTagModels() as documented.

will also try to make a PR, but in case I cannot manage, here it is :

    /**
     * Get all the tags used for the called class as a collection of models.
     *
     * @return collection
     */
    public static function allTagModels()
    {
        return app(TagService::class)->getAllTags(get_called_class());
    }
cviebrock commented 7 years ago

Actually, the issue is that I never tagged the latest release! D'oh! Doing that now.