cviebrock / eloquent-taggable

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

Add colour to tags #98

Closed philippejadin closed 5 years ago

philippejadin commented 5 years ago

I'm currently using this package with great success. I'd like to ass colour to tags. Am I correct that I just need to add a migration to add the appropriate columns then I'll be able to access those colours from the related tag model ? Anything I should watch for?

Thanks!

cviebrock commented 5 years ago

That sounds to me like all you'll need to do. You can also change the Tag model itself to something custom (that extends the package's Tag model) using the model setting in the config. That might make things easier for you (so any colour logic can go in your extended class).