rtconner / laravel-tagging

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

bootTaggable() don't execute #105

Closed teimur8 closed 7 years ago

teimur8 commented 8 years ago

Hello. Sorry for my English.

I'am install this package, end find error when attach tag . $post->tag(array('Gardening'))

image

When i debug this found in method tag $taggingUtility is null

so i add code

public function tag($tagNames)
    {
        static::$taggingUtility = app(TaggingUtility::class);
        $tagNames = static::$taggingUtility->makeTagArray($tagNames);

        foreach($tagNames as $tagName) {
            $this->addTag($tagName);
        }
    }`

end error left