laravel where on relationsship column
snippet in php

laravel where on relationsship column

user1688

Player::whereHas('roleplay', function($q){
   $q->where('column_name', 'value');
})->get();