F
F
flafy42017-01-08 19:35:15
MySQL
flafy4, 2017-01-08 19:35:15

How to build a database query with a many-to-many relationship [laravel]?

Good evening everyone. There is a many-to-many relationship, namely the articles table, the tags table and the article_tag table, where there are 2 columns (article_id and tag_id). How do I build a query and output only certain article with the where method of the DB facade?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
axblue, 2017-01-08
@leshikgo

facade DB not working with Eloquent(relations)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question