src/Models/Tag.php
public function scopeByName(Builder $query, string $value): Builder
    {
        $normalized = app(TagService::class)->normalize($value);

        return $query->where('normalized', $normalized);
    }
public function scopeByName(Builder $query, string $value): Builder
    {
        $normalized = app(TagService::class)->normalize($value);

        return $query->where('normalized', $normalized);
    }
Scope to find tags by name.

@param \Illuminate\Database\Eloquent\Builder $query
@param $value

@return \Illuminate\Database\Eloquent\Builder