Cviebrock\EloquentTaggable\Services\TagService::find PHP Method

find() public method

Find an existing tag by name.
public find ( string $tagName ) : Tag | null
$tagName string
return Cviebrock\EloquentTaggable\Models\Tag | null
    public function find($tagName)
    {
        $normalized = $this->normalize($tagName);
        return Tag::where('normalized', $normalized)->first();
    }