public function setTableAttribute($attribute, $value = null) { if (is_array($attribute)) { $this->setTableAttributes($attribute); } else { $this->tableAttributes[$attribute] = $value; } return $this; }