where("hosting_id", $hostingId); } public function scopeOfNetworkId($query, $networkId) { return $query->where("network_id", $networkId); } }