L
L
lynnikvadim2015-08-22 01:23:29
Laravel
lynnikvadim, 2015-08-22 01:23:29

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

1 answer(s)
A
Andrey Sokolov, 2015-08-22
@eX1stenZ

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 question

Ask a Question

731 491 924 answers to any question