title: WhereHas not working, in Has Many Relationsip
body: <p>Im try to using where to show data is_default=1 in relationship using whereHas like this code</p>
  <pre><code>$data = $this-&gt;user-&gt;with('profile', 'account')
              -&gt;whereHas('account', function ($query) use ($id) {
                  return $query-&gt;where('is_default', 1);
              })
              -&gt;where('id', $id)
              -&gt;first();
  </code></pre>
  <p>but my return still showing all data of account, even i set where is_default=1</p>
  <p>how i can solved this problem, please help me</p>