Trying to integrate "if condition" inside model relation. But It doesnt work.
$customer_index = Customer::where(\'firm_id\', $firm_id) ->