where($where) ->limit($limit) ->get() ->toArray(); } function addRecord($data){ $res=$this->insert($data); if(!$res){ return -6030001222; } } function getIdData($id){ return $this->where("id",$id)->first(); } public function updateIdData(int $id,$data){ return $this->where("id",$id)->update($data); } }