cviebrock / eloquent-taggable

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

Why is the tags table's auto incrementing id name tag_id #134

Closed joelmellon closed 7 months ago

joelmellon commented 2 years ago

The standard, best practice in the Laravel world is to name the primary, auto incrementing column id. Any reason to break convention?

I noticed this creating a foreign key constraint from taggables.tag_id -> tags.tag_id which also should be implemented in the migration.

cviebrock commented 7 months ago

Closing old issues.