where('active',TRUE); } /** METHODS **/ /** * Return the traffic records, that were not matched to a service. * * @param Carbon $date * @return Collection */ public function trafficMismatch(Carbon $date): Collection { return AdslTraffic::where('date',$date->format('Y-m-d')) ->where('supplier_id',$this->id) ->whereNULL('ab_service_adsl_id') ->get(); } }