/** * Add the "updated at" column to an array of values. * * @param array $values * @return array */ protected function addUpdatedAtColumn(array $values) { if (!$this->model->usesTimestamps()) { return $values; } $column = $this->model->getUpdatedAtColumn(); return array_add($values, $column, $this->model->freshTimestampString()); }
/** * Get the name of the related model's "updated at" column. * * @return string */ public function relatedUpdatedAt() { return $this->related->getUpdatedAtColumn(); }
/** * Get the name of the "updated at" column. * * @return string */ public function getUpdatedAtColumn() { return $this->parent->getUpdatedAtColumn(); }