= 2 && strlen($item) <= 5) { return $this->where('name', 'LIKE', $item . '%')->get(); } else if (strlen($item >= 5)) { return $this->where('typeName', 'LIKE', '%' . $item . '%')->orWhere('name', 'LIKE', '%' . $item . '%')->get(); } else { return []; } } protected function multisearch($codes, $countries) { //$countries = $ // return $this->where('code',$codes)->where('country',$countries); } }