I have two fields in my table, contact_name and company. for searching purposes, I am using this. I need to search by using contact_name and company. Now one is working fine, but I need to add a second field in the same where condition. How do I add this?
if(isset($input['dsr_commonsearch']) && $input['dsr_commonsearch']){
$query->where('dsr.contact_name','dsr.company','=', $input['dsr_commonsearch']);
}