Level 1
You should be able to use a single set of tables to do this using Polymorphic relationships.
Hi, I'm working on an ecommerce website that also has a blog. I have a posts table and a products table.
My problem is the taxonomy for the product's tags and categories aswell as that of the posts. Creating two tags table, two categories table and four intermediary tables works fine but I know its not efficient. I have tried to figure out how to use Laravel's Eloquent relationships to create a wordpress like taxonomy but I can't.
Any ideas on how to go about it. Your helps are much appreciated.
Please or to participate in this conversation.