rtconner / laravel-tagging

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

Why the tag->slug only affect the changes when the tag->name is changed? #201

Closed PR4M closed 3 years ago

PR4M commented 3 years ago

Is there any other way to solve this issue? Because I don't always need the tag->slug to follow the name convention rule e.g: Laravel Framework -> laravel-framework, sometimes we want: Laravel Framework -> laravel.

rtconner commented 3 years ago

you can override the 'normalizer' config if you want to change how slugs are generated.

https://github.com/rtconner/laravel-tagging/blob/laravel-8/config/tagging.php