rtconner / laravel-tagging

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

Using with UUID not working #194

Closed hybrid1969 closed 3 years ago

hybrid1969 commented 3 years ago

Hi

All my tables use UUID id fields instead of incremental and applying and retrieving tags appears to work all ok.

However withAnyTag/ withAllTags/ withoutTags do not seem to work. Do I need to change something to account for the UUID fields?

Thanks

rtconner commented 3 years ago

set the config for primary keys

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

hybrid1969 commented 3 years ago

didnt even notice that, thanks for the quick response and will try asap.