I've tried where and whereIn using this method, but it still doesn't seem to work
$query = Cdr::with(array('rules'=>function($query){
$query->whereIn('module_cdr2.module_name', ['fdgfdgd']);
//$query->where('module_cdr2.property_name', '=', 'action');
//$query->where('module_cdr2.value', '=', '0');
$query->whereIn('module_cdr2.module_name', ['dgdfd']);
}))->limit(10)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community