Hello,
I have a project that is a commercial guide, where we can create commerces and assign X number of categories to them. The categories are grouped in up to 3 levels. That is, for example: "Education" -> "Teachers" -> "Spanish"
But, there are cases where there is only one level up or two. Example: "Cars" -> "Driver's Academy"
I know that I have to do "Many to Many" relationships, but how? I need to have a table for each level of categories? How can I assign the relationships on a pivot table?
If anyone can guide me a bit would greatly appreciate it!
I am fairly new to Laravel but hopefully soon I will also collaborate and help others with issues they may have.
Thanks in advance!!