Answer the question
In order to leave comments, you need to log in
How to implement article categories in Laravel?
The site provides for the creation of articles.
The article must be related to three categories. (this is in the admin panel)
On the site for the user, all the parents of the categories should be displayed initially, and their child categories should be topped, and then all the posts on the page.
How can I implement this?
.... looked at many lessons, but none of them have this.
Tell me who can.
Answer the question
In order to leave comments, you need to log in
Well, there are a couple of options, the simplest:
make an intermediate table article_category link
the record id (1,2,3,4,5...) | category id | id news
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question