hauwa's avatar
Level 1

"Wordpress like" Taxonomy in Laravel 5.3

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.

0 likes
1 reply

Please or to participate in this conversation.