cviebrock / eloquent-taggable

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

Find by normalized tags #64

Closed elephantux closed 6 years ago

elephantux commented 6 years ago

Is it possible to return all models by normalized tag?

This work fine:

Model::withAnyTags('hello world')->get();

This doesn't work:

Model::withAnyTags('hello-world')->get();

I use:

'normalizer'           => ['Illuminate\Support\Str', 'slug'],
elephantux commented 6 years ago

Sorry, all work fine. My mistake.