laravel query on relationship field code example
Example: laravel where on relationsship column
Player::whereHas('roleplay', function($q){
$q->where('column_name', 'value');
})->get();
Player::whereHas('roleplay', function($q){
$q->where('column_name', 'value');
})->get();