Answer the question
In order to leave comments, you need to log in
Which attitude to choose?
Let's say you can put an article in different categories, then is it better to make a separate table for this and use a many-to-many relationship?
Or do one-to-many without a pivot table?
Answer the question
In order to leave comments, you need to log in
you can put an article in different categories <...> one to many
Depending on how you want, if there is one category for one post, then you don’t need it, but if there is one post for several, then you need it through the pivot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question