public function getTableAttribute($attribute) { if (!array_key_exists($attribute, $this->tableAttributes)) { throw new \Exception("Table attribute '{$attribute}' does not exist."); } return $this->tableAttributes[$attribute]; }