cviebrock / eloquent-taggable

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

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

Closed joelmellon closed 9 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 9 months ago

Closing old issues.