cartalyst / tags

A Tagging package that easily allows you to add tags to your Eloquent models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

index/relation on tagged.tag_id

AidasK opened this issue · comments

Why there is no index/relation on tagged.tag_id? I think it would be a huge performance and consistency boost

I think we should add $table->foreign('tag_id')->references('id')->on('tags')->onDelete('cascade')->onUpdate('cascade');