Fetching data that belongs to a model 'through' another relationship

Thats a standart array method. It joins the array ["1", "2", "3"] into a string 1,2,3

So the query became:
SELECT * FROM articles WHERE id in (1,2,3)

1 Like