builder->where('type_id', $value); } } protected function brandId($value) { if($value){ return $this->builder->where('brand_id', $value); } } }