CodeIgniter 4 Consultor de consultas se inserta ID
$query = $this->db->table($this->table)->insert($data);
return $query->resultID;
Friendly Flamingo
$query = $this->db->table($this->table)->insert($data);
return $query->resultID;