where('test_model_id', '=', $test_model_id)->delete();//return 2 } public function insertPesticidesInfo($update_data) { return $this->insertAll($update_data); } public function getInfoByTestModelId($test_model_id) { return $this->where('test_model_id', '=', $test_model_id)->select(); } }