title: Where relationship column equals?
body: <p>I am trying to grab all records where Player's relationship called <code>stats()</code> has a column value of something. I would usually do <code>::where('column_name' 'column_value')</code> for the players table, but how can I get ::where the relationship table's column equals to something?</p>
  
  <pre><code>Player::where('column_name', 'column_value')-&gt;get();
  </code></pre>
  
  <p>But I want to check a column in the relationships table?</p>
  
  <pre><code>public function roleplay()
  {
      return $this-&gt;hasOne('App\Database\Frontend\User\Roleplay', 'user_id', 'id');
  }
  </code></pre>