title: Eloquent query - one to many relationship
body: <p>Guys I'm new to Laravel and I'm trying to find the name of the user that answers a certain question:</p>
  
  <pre><code>$users = User::with('answers')-&gt;where('question_id', $request-&gt;question_id)-&gt;get();
  </code></pre>
  
  <p>I've tried this but it doesn't work.It seems like he is trying to find the <code>question_id</code> from the User and not from the Answer.  </p>
  
  <p><strong>Answer Model</strong></p>
  
  <pre><code>Class Answer extends Model{
    public function users()
      {
          return $this-&gt;belongsTo(User::class);
      }
  }
  </code></pre>
  
  <p><strong>User Model</strong></p>
  
  <pre><code>Class User extends Authenticatable{
  public function answers()
      {
          return $this-&gt;hasMany(Answer::class);
      }
  }
  </code></pre>