title: laravel get eloquent data using its relations Ids
body: <p>I have three main <strong>mySQL</strong> tables:</p>
  
  <ul>
  <li>users</li>
  <li>tags</li>
  <li>news_articles</li>
  </ul>
  
  <p>I also have many to many tables to connect them as needed.</p>
  
  <p>I want to grab all the articles that share the same tags as users so I can personalise their experience.</p>
  
  <p>(example): say a user has tags for "Trump" or "Brexit" I want to grab all the news articles that also have Trump or Brexit.</p>
  
  <p>I could grab the whole data pool and make calculations but that might get unnecessarily server intensive so is there a way of doing it through Eloquent? </p>
  
  <p><strong>Also</strong> is Eloquent capable of tallying the user tags to determine which tags the user is most interested in before grabbing the articles or would that need a workaround after?</p>
  
  <p>Thanks in advance.</p>