title: Eager loading with conditional - Laravel
body: <p>I have this query:</p>
  <pre><code> $tournament = Tournament::with(
              'championships',
              'championships.settings',
              'championships.category',
              'championships.tree.users',
          )-&gt;first();
  </code></pre>
  <p>Right now, it gives me the tournament with all attached championships.</p>
  <p>What I need is to get the tournament but only with the championship which match the <code>$request-&gt;championshipId</code> that I have.</p>
  <p>Off course, I also want this filter in all the other relations <code>('championships.settings', 'championships.category','championships.tree.users')</code></p>