/** * @param array $values * @return array */ protected function addUpdatedAtColumn(array $values) { if (!$this->model->usesTimestamps()) { return $values; } $column = $this->model->getUpdatedAtColumn(); return Arr::add($values, $column, $this->model->freshTimestampString()); }
/** * @return string */ public function relatedUpdatedAt() { return $this->related->getUpdatedAtColumn(); }
/** * @return string */ public function getUpdatedAtColumn() { return $this->parent->getUpdatedAtColumn(); }